Loading src/Form/HelpfulnessBlockForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class HelpfulnessBlockForm extends FormBase { public function validateForm(array &$form, FormStateInterface $form_state) { $config = $this->config('helpfulness.settings'); if (!$form_state->getValue('helpfulness_rating')) { if ($form_state->getValue('helpfulness_rating') === NULL) { $form_state->setErrorByName('helpfulness_rating', $this->t('Please indicate if this page is helpful or not.')); } Loading Loading
src/Form/HelpfulnessBlockForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class HelpfulnessBlockForm extends FormBase { public function validateForm(array &$form, FormStateInterface $form_state) { $config = $this->config('helpfulness.settings'); if (!$form_state->getValue('helpfulness_rating')) { if ($form_state->getValue('helpfulness_rating') === NULL) { $form_state->setErrorByName('helpfulness_rating', $this->t('Please indicate if this page is helpful or not.')); } Loading