From 87498c57ab3d77c115b5484ec9588b3ee4c5d14e Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 3 Aug 2022 20:33:17 -0400 Subject: [PATCH] skip problematic template --- CRM/Upgrade/Incremental/php/FiveFiftyThree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Upgrade/Incremental/php/FiveFiftyThree.php b/CRM/Upgrade/Incremental/php/FiveFiftyThree.php index 0f6d8c7fd4d8..1d735abcd13d 100644 --- a/CRM/Upgrade/Incremental/php/FiveFiftyThree.php +++ b/CRM/Upgrade/Incremental/php/FiveFiftyThree.php @@ -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; }