You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.
When I've added a mandatory media picker property to a document used in Stacked Content the validation seems to fail and allows me to save and publish the parent document even when a media item hasn't been set. Putting a mandatory media picker on the parent document type doesn't have the same issue only within Stacked Content.
Enviroment details
OS: Windows 7
Browsers:
Google Chrome
Firefox
Internet Explorer 11
How to reproduce
To isolate and test the issue outside of my project I did the following:
Created a fresh install of Umbraco 7.5.8 via Nuget
Installed Stacked Content via Nuget (version 1.04)
Created new document type consisting of only a mandatory media picker called "File Download Test".
Created a "Test" page under a blank home node of document type "File Download Test".
Attempted to publish the page without choosing a media item. - As expected Umbraco would not let me save and flagged the usual validation messages.
Created a new Stacked Content data type and added "File Download Test" as document type within the stacked content.
Created a new document type "File Download Stacked Content Test" and added the Stacked Content data type, checked the "Field is mandatory" box leaving the default "Validation" in the drop down box.
Created a "Test Stacked Content" page under the same home node of document type "File Download Stacked Content Test".
Gave the page a name and added the first Stacked Content item, did not select anything for "File Download Test" media picker and clicked submit. Stacked content allowed me to submit and presented the first item in the row. - At this point I would expect to see validation messages.
Clicked save and publish at the page level and this allowed me to successfully save and publish again without any validation errors.
Thoughts
Couple of observations:
Ideally it would be good if stacked content could be validated when it was submitted, however I understand that this may not be possible due to the validation most likely occurring server side.
Validation should at least occur during the main page save and the invalid stacked content entry highlighted.
I suspect that no validation is actually occurring for the Stacked Content type, however I'm unsure how to test this theory.
The text was updated successfully, but these errors were encountered:
I'm going to close this ticket off. This is still very much an important feature request - which I've opened over on the InnerContent repository: umco/umbraco-inner-content#21
Summary of situation
When I've added a mandatory media picker property to a document used in Stacked Content the validation seems to fail and allows me to save and publish the parent document even when a media item hasn't been set. Putting a mandatory media picker on the parent document type doesn't have the same issue only within Stacked Content.
Enviroment details
OS: Windows 7
Browsers:
Google Chrome
Firefox
Internet Explorer 11
How to reproduce
To isolate and test the issue outside of my project I did the following:
Thoughts
Couple of observations:
The text was updated successfully, but these errors were encountered: