From 395a5940ca31354ff5bfa98d98ee320a9cd8e66d Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Wed, 14 Dec 2022 10:52:01 -0500
Subject: [PATCH] ISTWCMS-5846: fixing comment

---
 uw_cfg_common.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/uw_cfg_common.module b/uw_cfg_common.module
index ef6352e1..706db74a 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -1228,8 +1228,8 @@ function _uw_cfg_common_blank_summaries_validation(array &$form, FormStateInterf
     $field_name = 'field_uw_' . $node_type . '_summary';
   }
 
-  // If the blank summary is checked and the summary is null,
-  // then set an error.
+  // If the blank summary is not checked and the summary
+  // is null, then set an error.
   if (!$values['field_uw_blank_summary']['value']) {
     if ($values[$field_name][0]['value'] == '') {
       $form_state->setError($form[$field_name]['widget'][0], t('Summary/position field is required.'));
-- 
GitLab