Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Pending draft" link in page list for custom entities it's not working #214
Hi, i created some custom entities on Coufoundry, and they configured with AutoPublish=false. In the list page the Pending Draft link of an unpublished entry it's not working, it seems that the link it's not configured correctly, this is what i see in code generated on the page
Thanks for your support.
Hi there, I'm trying this out with our SimpleSite sample and cannot replicate an issue. In the sample I'm looking at the Blog Post custom entity listing "/admin/blog-posts#/" and if I have a blog post in draft state the Pending Draft link works.
In what way are you seeing an issue? Is the url wrong? Does the Pending Draft link display or is it hidden?
The link is displayed, but when i click on it, the page reloads and nothing happens. I'm guessing it could be the configuration of my custom entity, this is how i configured it:
` public class NewsDataModel : ICustomEntityDataModel
The "NewsDataModel" is the data model of the custom entity.
added a commit
Jun 5, 2018
Ok I've found the issue, Am I right in thinking that you do not have a custom entity page associated with the custom entity?
I've found an issue where the Preview Draft link displays even when there is no page associated with the custom entity. The draft link is supposed to redirect you to that page, but was still displaying if there was no link. I've fixed that now and it will be released in v0.3.2