Skip to content

Commit

Permalink
Merge pull request #24141 from demeritcowboy/skip-event
Browse files Browse the repository at this point in the history
Skip warning about event-online message template during upgrade
  • Loading branch information
eileenmcnaughton authored Aug 4, 2022
2 parents bfd68db + 87498c5 commit 6622639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Upgrade/Incremental/php/FiveFiftyThree.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function getTemplatesUsingPercentA(): array {
// is_default has weird meaning - it means the one currently in use, not the default distributed with civi (which is is_reserved).
// The "NOT LIKE" part is necessary to avoid false positives because the
// event receipt uses it (correctly) with date_format.
$dao = CRM_Core_DAO::executeQuery("SELECT id, msg_title FROM civicrm_msg_template WHERE is_default = 1 AND ((msg_html LIKE BINARY '%\\%A%' AND msg_html NOT LIKE BINARY '%date_format:\"\\%A\"%') OR (msg_text LIKE BINARY '%\\%A%' AND msg_text NOT LIKE BINARY '%date_format:\"\\%A\"%') OR (msg_subject LIKE BINARY '%\\%A%' AND msg_subject NOT LIKE BINARY '%date_format:\"\\%A\"%'))");
$dao = CRM_Core_DAO::executeQuery("SELECT id, msg_title FROM civicrm_msg_template WHERE is_default = 1 AND workflow_name <> 'event_online_receipt' AND ((msg_html LIKE BINARY '%\\%A%' AND msg_html NOT LIKE BINARY '%date_format:\"\\%A\"%') OR (msg_text LIKE BINARY '%\\%A%' AND msg_text NOT LIKE BINARY '%date_format:\"\\%A\"%') OR (msg_subject LIKE BINARY '%\\%A%' AND msg_subject NOT LIKE BINARY '%date_format:\"\\%A\"%'))");
while ($dao->fetch()) {
$usages[$dao->id] = $dao->msg_title;
}
Expand Down

0 comments on commit 6622639

Please sign in to comment.