Skip to content

RedatorX required validation bug 7.5.14 #5057

@DONEILL-emp

Description

@DONEILL-emp

Description of the problem
When a redatorX field is set to required and you try to save the entry with an empty field you get an error, as expected. When you add text to the field and click out of it the validation should run again and the warning message should be removed and the "Save" button should be active again.

I used the same file from version 7.4.11 (just happened to be the version of another project I have) and the validation works as expected.

Required validation error.
Image

themes/ee/asset/javascript/compressed/cp/form_validation.js version 7.4.11. Click of the field and a jQuery request happens and it works as expected.

Image

Repeat the test using form_validation.js version 7.5.14. No request gets fired off so the error remains.

Image

How To Reproduce
Steps to reproduce the behavior:

  1. Create a field of type Rich Text Editor
  2. Toggle the required option to on
  3. Set the configuration to be RedatorX Basic
  4. Add the field to the Channel and then create an entry
  5. With the field empty click the Save button
  6. Enter some text into the field and then click out of the text area
  7. The request to revalidate should have been sent as per 7.4.11

Error Messages
None, I am not sure which version this issue was introduced, I believe this file was updated in a quite recent patch.

Environment Details:

  • Version: 7.5.14
  • PHP Version 8.2
  • MySQL Version 8.0
  • OS: Linux(Docker)
  • Web Server: nginx

Possible Solution
Revert to previous version or track down the breaking change by introducing the new changes bit by bit and rerunning the test until the issue starts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions