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
Attributes set on a field which take the database value do not show the correct value when saving a new value on the field. The value of the attribute will always be taken from the previous save, unless you refresh the whole page.
Steps to reproduce
Implement an Extension class that adds a new field, and sets an attribute using the database value:
Apply the extension to Page (it's possible the above directly in Page will also exhibit this issue - I haven't checked)
Create a new page. Check the field - the attribute is missing.
Set a value on the field and save, then check the field again. The attribute is still be missing despite a value having been saved to the database.
Set a different value on the field and save, then check the field again. The attribute has the value from step 4! It should have the value that you just saved.
Refresh the page and check the field. The attribute now shows the correct value.
The text was updated successfully, but these errors were encountered:
I tried replicating this in 4.7.x-dev as well as 4.6.0, though I was unable to replicate this issue. The data-db-value="myvalue" is updating as I would expect it to
Version
4.6.0
Problem
Attributes set on a field which take the database value do not show the correct value when saving a new value on the field. The value of the attribute will always be taken from the previous save, unless you refresh the whole page.
Steps to reproduce
The text was updated successfully, but these errors were encountered: