New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save of checkbox field fails if Velocity var name of field is properties
#18073
Comments
This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you. |
alfredo-dotcms
added a commit
that referenced
this issue
Dec 18, 2020
nollymar
pushed a commit
that referenced
this issue
Dec 18, 2020
alfredo-dotcms
added a commit
that referenced
this issue
Dec 22, 2020
…ield is `properties` If you create a select field in a content type, and name it so that the Velocity variable name of the field is properties, then when you make changes to the field in the content editing screen and then save the content, your changes to that field will not be saved.
nollymar
pushed a commit
that referenced
this issue
Dec 23, 2020
…ield is `properties` (#19736) If you create a select field in a content type, and name it so that the Velocity variable name of the field is properties, then when you make changes to the field in the content editing screen and then save the content, your changes to that field will not be saved.
Additional fix: #19736 |
Needs work: It doesn't work for Multiselect fields. The selected value is not kept |
alfredo-dotcms
added a commit
that referenced
this issue
Jan 4, 2021
…that the Velocity variable name of the field is properties, then when you make changes to the field in the content editing screen and then save the content, your changes to that field will not be saved. #18073 fix
Passed internal QA |
Fixed, tested on release-21.02 // Postgres // FF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If you create a checkbox field in a content type, and name it so that the Velocity variable name of the field is
properties
, then when you make changes to the field in the content editing screen and then save the content, your changes to that field will not be saved.Note: I expect this will probably be a problem with any type of field, but the only one I tested with explicitly was checkbox.
Steps to reproduce the behavior:
Problem: The checkbox is not checked.
Expected behavior
The user should be able to save changes to any field we allow them to create.
This means that if
properties
is reserved for some reason, then when the user creates the field we should do one of the following:properties1
) to prevent a conflict.Desktop (please complete the following information):
Additional context
If possible, we should check to see if there are any other hidden potential name conflicts with velocity var names, other than just
properties
. So we should figure out where this conflict is coming from, and then figure out what other reserved words come from the same place, and make sure this same problem doesn't crop up again with some different velocity var name.Acceptance Criteria
The text was updated successfully, but these errors were encountered: