Ensure no_display key exists
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 30 Apr 2023 23:35:06 +0000 (11:35 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 30 Apr 2023 23:35:06 +0000 (11:35 +1200)
CRM/Report/Form.php

index 6a7f367527eaf5fd35f1e5417fea6446745931ab..acb1c800b2f59baa571cdaafc1f4046e8192c3c2 100644 (file)
@@ -1386,6 +1386,7 @@ class CRM_Report_Form extends CRM_Core_Form {
         if (empty($field['operatorType'])) {
           $field['operatorType'] = '';
         }
+        $field['no_display'] = $field['no_display'] ?? FALSE;
         $filterGroups[$groupingKey]['tables'][$table][$fieldName] = $field;
         // Filters is deprecated in favour of filterGroups.
         $filters[$table][$fieldName] = $field;