Add fix for trailing single-quote in Awaiting Information grant status label.
authorDave Greenberg <dave@civicrm.org>
Thu, 8 May 2014 00:14:18 +0000 (20:14 -0400)
committerDave Greenberg <dave@civicrm.org>
Thu, 8 May 2014 00:14:18 +0000 (20:14 -0400)
CRM/Upgrade/Incremental/sql/4.5.alpha1.mysql.tpl

index 7f58f2bdcf22fd624304d4300388cd9460691348..05926b60b5cd2dc3b62883fcfa615816597697a1 100644 (file)
@@ -495,3 +495,10 @@ SELECT 'Withdrawn' AS grantstatus
 LEFT JOIN civicrm_option_value co ON LOWER(co.name) = LOWER(temp.grantstatus)
 AND option_group_id = @option_grant_status
 WHERE co.id IS NULL;
+
+-- Fix trailing single quote in grant status label
+UPDATE civicrm_option_value v
+       INNER JOIN civicrm_option_group g
+       ON v.option_group_id=g.id AND g.name='grant_status'
+       SET label='Awaiting Information'
+       WHERE v.label='Awaiting Information\'' and v.name='Awaiting Information';