Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments - message field not required? #986

Closed
Hec4 opened this issue Mar 18, 2021 · 1 comment
Closed

Comments - message field not required? #986

Hec4 opened this issue Mar 18, 2021 · 1 comment

Comments

@Hec4
Copy link

Hec4 commented Mar 18, 2021

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 :)

@GregMage
Copy link
Contributor

Thank you for this feedback!

geekwright added a commit that referenced this issue Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants