Loading src/Form/HelpfulnessBlockForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ class HelpfulnessBlockForm extends FormBase { } $comment_required = $config->get('helpfulness_comment_required') ?? 0; if (!$comment_required) { if ($comment_required) { $comment_text = strip_tags($form_state->getValue('helpfulness_comments')); if (strlen($comment_text) < 1) { $form_state->setErrorByName('helpfulness_comments', $config->get('helpfulness_comment_required_message')); Loading Loading
src/Form/HelpfulnessBlockForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -118,7 +118,7 @@ class HelpfulnessBlockForm extends FormBase { } $comment_required = $config->get('helpfulness_comment_required') ?? 0; if (!$comment_required) { if ($comment_required) { $comment_text = strip_tags($form_state->getValue('helpfulness_comments')); if (strlen($comment_text) < 1) { $form_state->setErrorByName('helpfulness_comments', $config->get('helpfulness_comment_required_message')); Loading