From fae4a4a1f94f719a08cd4a54ffe40dd36e96a079 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 28 Mar 2013 11:53:40 -0700 Subject: [PATCH] CRM-12243 Replaced loop on locales with {localize} tag. ---------------------------------------- * CRM-12243: Beta 4 upgrade fails with duplicate column error if site was originally installed as a 4.3 site http://issues.civicrm.org/jira/browse/CRM-12243 --- CRM/Upgrade/Incremental/sql/4.3.beta5.mysql.tpl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CRM/Upgrade/Incremental/sql/4.3.beta5.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.3.beta5.mysql.tpl index e56a0df7f5..b27c0d3d76 100644 --- a/CRM/Upgrade/Incremental/sql/4.3.beta5.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.3.beta5.mysql.tpl @@ -1,9 +1,3 @@ -- CRM-12142 -- Populate default text for premiums_nothankyou_label -{if !$multilingual} - UPDATE `civicrm_premiums` SET premiums_nothankyou_label = '{ts escape="sql"}No thank-you{/ts}'; -{else} - {foreach from=$locales item=locale} - UPDATE `civicrm_premiums` SET premiums_nothankyou_label_{$locale} = '{ts escape="sql"}No thank-you{/ts}'; - {/foreach} -{/if} +UPDATE `civicrm_premiums` SET {localize field="premiums_nothankyou_label"}premiums_nothankyou_label = '{ts escape="sql"}No thank-you{/ts}'{/localize}; \ No newline at end of file -- 2.25.1