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
I recently returned to Xoops and install a 2.5.10 and some modules. I've noticed an issue with the comment system. The "message" field isn't required on front but as you send the form, it leads you to an error page telling you it's required.
I'm not developer but I found a solution and was thinking it could be implemented..
So in file /include/comment_form.php at line 71 it were $cform->addElement(new XoopsFormEditor(_CM_MESSAGE, 'com_text', $configs, false, $onfailure = 'textarea'));
I've added a missing parameter as following $cform->addElement(new XoopsFormEditor(_CM_MESSAGE, 'com_text', $configs, false, $onfailure = 'textarea'), true);
Now the field is well required.
Thanks for your work :)
The text was updated successfully, but these errors were encountered:
Hi,
at first, I'm French so excuse my english ^^
I recently returned to Xoops and install a 2.5.10 and some modules. I've noticed an issue with the comment system. The "message" field isn't required on front but as you send the form, it leads you to an error page telling you it's required.
I'm not developer but I found a solution and was thinking it could be implemented..
So in file /include/comment_form.php at line 71 it were
$cform->addElement(new XoopsFormEditor(_CM_MESSAGE, 'com_text', $configs, false, $onfailure = 'textarea'));
I've added a missing parameter as following
$cform->addElement(new XoopsFormEditor(_CM_MESSAGE, 'com_text', $configs, false, $onfailure = 'textarea'), true);
Now the field is well required.
Thanks for your work :)
The text was updated successfully, but these errors were encountered: