shannah / xataface

Framework for building data-driven web applications in PHP and MySQL
http://xataface.com
GNU General Public License v2.0
134 stars 57 forks source link

Bugs with ckeditor while adding new related record #107

Open Pierrick-R opened 5 years ago

Pierrick-R commented 5 years ago

There is a bug while we try to add a New related record (when you are in the related record list). The bug is happening with the following condition: Field type (from database) is "text" and NULL is not allowed

=> 1st bug: this field does not appear as "required" automatically capture

indeed, if we do not fill it, this leads to a crash in PHP

then, I tried to forced the"required" putting validators:required=1 within the field definition. Then, I wanted to use ckeditor for this field: widget:type=ckeditor

This works perfectly if we add a New record from the main view.

=> 2nd bug: if we add a New related record from the related list view, even if we fill-in the text field with some data, as soon as we clic on "Save", the following message pop-up:

"Invalid information entered.

What is strange is if we clic once again on "Save", without any modification, it works: record is properly saved.

This behavior does not occur if we add a New record from the main view: in this case, no bug happens. Also, when we use the "save" button embedded in the ckeditor, the bug does not occur.

refer to https://groups.google.com/forum/#!topic/xataface/sepERYDsjm4