Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Content with required tag field cannot be published #16026
Reported via support ticket: 97470
Content from content type having a required tag field cannot be published. An error message is raised: "Error: Contentlet has invalid / missing field(s)"
Content items from a content type with a required field of tag type should be published if the field is valid (it has some value set for tag).
When trying to publish a content item in working state from the Content Search portlet, a error message is shown even if the field has a value set for the tag (the tag field is required for the content type). The error message is: "Error: Contentlet has invalid / missing field(s)"
Fix the code to include the tag values for the field in the content map used in the validation, so the validation code don't evaluate the field as empty and trigger the error signaling the the value is missing from the field.
Edit the content item and click Save/Publish to publish it, instead of choosing Publish from the Content Search portlet context menu.
Steps to Reproduce (for bugs)
The following error message is the dotcms.log file:
This issue prevents the user from publishing the content from the workflow actions available on the Content Search portlet.
WF : Needs Work
WF : Needs Test Case
WF : Passed QA
Passed Internal QA
May 3, 2019
I was able to break it.
Create an instance of the new content-type from the content search.
This doesn't always happen. But I was able to reproduce it consistently using the tag 'healthcare'