CRM-12243 Replaced loop on locales with {localize} tag.
authorDave Greenberg <dave@civicrm.org>
Thu, 28 Mar 2013 18:53:40 +0000 (11:53 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 28 Mar 2013 18:53:40 +0000 (11:53 -0700)
----------------------------------------
* 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

index e56a0df7f58de4675dceb0c8d9b5630eb95f87bb..b27c0d3d7638ff191f827a30b8db2305077f61b5 100644 (file)
@@ -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