When an entry is saved, what causes the entry's individual fields to be marked as "modified" in the POST request?
I'm trying to troubleshoot an issue where a modified Redactor field that is a child of a Neo field is not being saved. When I examine the POST data in the debug bar, I see that the field's updated content was posted, but the
'modified' key in the array is still set to
What's interesting is that if I modify the Redactor field by typing words in it, the field's
'modified' key is set to
'1' in the POST data, as expected. However, if I try to just add a single period; highlight text and press delete; or try to copy and paste text into the Redactor field, the
'modified' key is not set to
'1' when I save.
So it appears that, in order for the Redactor field to be marked as "modified", I have to type a certain amount of text into the field.
Edit: After more testing, it appears that adding or deleting a single character is not enough for the field to be marked as 'modified'. However, if you add at least two characters, with a pause between each character, the field will correctly be marked as modified. If you type a word quickly, and then save, the field is not marked as modified. If you type a word and be sure to leave at least a second's pause between typing two of the characters, the field is marked as modified.
I'm trying to troubleshoot this issue and identify the root of the problem; is this an issue with the Redactor plugin not reporting that its field has been changed? Is it an issue of the Neo plugin getting in the way of its child field's Redactor field reporting the change, or is an issue with Craft, itself, not picking up on the field being modified?
If anybody has any suggestions of where the problem might lie, I'd be very grateful!
The versions involved are:
- CraftCMS: 188.8.131.52
- Redactor: 2.6.1
- Neo: 184.108.40.206