Skip to content

Commit

Permalink
Merge pull request #24653 from colemanw/fixRecentItemsOptionGroup2
Browse files Browse the repository at this point in the history
RecentItems - additional fix for inconsistent option values
  • Loading branch information
demeritcowboy authored Oct 1, 2022
2 parents 47814cc + c9e1e2b commit c5fb3ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CRM/Upgrade/Incremental/sql/5.54.alpha1.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ WHERE `option_group_id` = @og_recent_items_providers;
UPDATE `civicrm_option_value`
SET `value` = `name`
WHERE `option_group_id` = @og_recent_items_providers AND `value` REGEXP '^[0-9]+$';

{* Fix option values created with wrong name by the 5.53.0 installer *}
UPDATE `civicrm_option_value`
SET `name` = `value`
WHERE `option_group_id` = @og_recent_items_providers;

0 comments on commit c5fb3ff

Please sign in to comment.