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
I was made aware that if you create a new member-type which uses the umbraco.dropdown.flexible, as a mandatory property, then you would be able to save this new member without selecting anything from the dropdown.
Here is what is happening: if anything hasn't been picked then it would save the member with an empty string in the dropdown property. This would satisfy the property, as it technically has a value saved on the member.
Specifics
Version of Umbraco: 7.12.3
Browser: Chrome, Firefox and Internet Edge.
Images:
Steps to reproduce
Create a new member-type.
Assign it the property of the dropdown editor and make sure it is on mandatory.
Give the dropdown editor at least 1 prevalue.
Save the new membertype.
Create a new member using the newly created membertype.
Fill out the necessary information for this new member, except mandatory dropdown.
Save the member.
Find the new member in the membersection and see that the dropdown property is still on the empty string.
Expected result
I would have expected that it gave me a validation error as the user who created the member has not picked anything in the dropdown property.
Actual result
It saved the member just fine.
There is no error messages that popups to help identify what is going on.
The text was updated successfully, but these errors were encountered:
I've recreated this in both Members and Content docs.
I can see how to fix this for simple, single selections. The angular attribute ng-required="model.validation.mandatory" is missing.
Putting this in Umbraco.Web.UI.Client\src\views\propertyeditors\dropdownFlexible\dropdownFlexible.html to fixes it for both members and content but not for the multi-select (there is a switch for this but adding this attribute is ignored here).
It seems that this flexible was created under #2502 so there is a dropdown and dropdownflexible.. guessing it's to support legacy. Not sure if to put this attribute on both?!
Bug summary
I was made aware that if you create a new member-type which uses the umbraco.dropdown.flexible, as a mandatory property, then you would be able to save this new member without selecting anything from the dropdown.
Here is what is happening: if anything hasn't been picked then it would save the member with an empty string in the dropdown property. This would satisfy the property, as it technically has a value saved on the member.
Specifics
Version of Umbraco: 7.12.3
Browser: Chrome, Firefox and Internet Edge.
Images:
Steps to reproduce
Expected result
I would have expected that it gave me a validation error as the user who created the member has not picked anything in the dropdown property.
Actual result
It saved the member just fine.
There is no error messages that popups to help identify what is going on.
The text was updated successfully, but these errors were encountered: