e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Bug]: you can send empty FAQ question #5123

Open Jimmi08 opened 7 months ago

Jimmi08 commented 7 months ago

What e107 version are you using?

v2.3.3, Latest Github version (just updated)

Bug description

Required is missing on faq form. What is point of empty question?

Adding'required'=>true, to c_faq_submit_question() shortcode helped, but there should be a minimal character limit too.

How to reproduce

Install FAQ plugin Allow send Q via frontend Press send button without any content

Expected behavior

Required field minimal characters set

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

8.1

Moc commented 7 months ago

@CaMer0n It appears e107::getForm()->textarea() does not support the minlength option/attribute yet? Is that intentional? Could it be added?