Skip to content
Snippets Groups Projects
Commit 395a5940 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5846: fixing comment

parent aeb32fa6
No related branches found
No related tags found
2 merge requests!295ISTWCMS-5846: adding code and config for blank summaries,!274Draft: ISTWCMS-5551: fixing office hours display
...@@ -1228,8 +1228,8 @@ function _uw_cfg_common_blank_summaries_validation(array &$form, FormStateInterf ...@@ -1228,8 +1228,8 @@ function _uw_cfg_common_blank_summaries_validation(array &$form, FormStateInterf
$field_name = 'field_uw_' . $node_type . '_summary'; $field_name = 'field_uw_' . $node_type . '_summary';
} }
// If the blank summary is checked and the summary is null, // If the blank summary is not checked and the summary
// then set an error. // is null, then set an error.
if (!$values['field_uw_blank_summary']['value']) { if (!$values['field_uw_blank_summary']['value']) {
if ($values[$field_name][0]['value'] == '') { if ($values[$field_name][0]['value'] == '') {
$form_state->setError($form[$field_name]['widget'][0], t('Summary/position field is required.')); $form_state->setError($form[$field_name]['widget'][0], t('Summary/position field is required.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment