E-notice fix, don't skip loading NULL fields
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 11 Aug 2023 03:20:05 +0000 (15:20 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 11 Aug 2023 03:20:05 +0000 (15:20 +1200)
This addresses e-notices (e.g) when help_pre is NULL & assigned to the template

CRM/Price/BAO/PriceSet.php

index f2c2aa892fd69403a3e06a216b68312b8c41166a..e2c7a0d68df889a0cabe3ccbf86694b7f6a57b0f 100644 (file)
@@ -458,7 +458,7 @@ AND ( expire_on IS NULL OR expire_on >= {$currentTime} )
       $setTree[$setID]['fields'][$fieldID]['id'] = $fieldID;
 
       foreach ($priceFields as $field) {
-        if ($field == 'id' || is_null($dao->$field)) {
+        if ($field === 'id') {
           continue;
         }