Skip to content

Commit

Permalink
Merge pull request civicrm#29301 from eileenmcnaughton/event_online
Browse files Browse the repository at this point in the history
Fix master-only regression on saving event info when no custom data applies
  • Loading branch information
demeritcowboy authored Feb 7, 2024
2 parents 1bec663 + f6af63f commit b9c5279
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CRM/Custom/Form/CustomDataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ protected function addCustomDataFieldsToForm(string $entity, array $filters = []
]
);
}
$tables = CRM_Core_DAO::executeQuery(implode(' UNION ', $query));
while ($tables->fetch()) {
$customGroupSuffixes[$tables->table_name] = '_' . $tables->id;
if (!empty($query)) {
$tables = CRM_Core_DAO::executeQuery(implode(' UNION ', $query));
while ($tables->fetch()) {
$customGroupSuffixes[$tables->table_name] = '_' . $tables->id;
}
}
}

Expand Down

0 comments on commit b9c5279

Please sign in to comment.