Skip to content

Commit

Permalink
Merge pull request #27368 from seamuslee001/5.66
Browse files Browse the repository at this point in the history
[REF] Ensure that any NULL values in the title field are fixed prior …
  • Loading branch information
seamuslee001 authored Sep 7, 2023
2 parents a9fd7ac + 017ff39 commit 928d0e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CRM/Upgrade/Incremental/sql/5.63.alpha1.mysql.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ UPDATE civicrm_contribution_page SET `name` = `id`;
-- Add name field, make frontend_title required (in conjunction with php function)
{if $multilingual}
{foreach from=$locales item=locale}
UPDATE `civicrm_contribution_page`
SET `title_{$locale}` = ''
WHERE `title_{$locale}` IS NULL;

UPDATE `civicrm_contribution_page`
SET `frontend_title_{$locale}` = `title_{$locale}`
WHERE `frontend_title_{$locale}` IS NULL OR `frontend_title_{$locale}` = '';
{/foreach}
{else}
UPDATE `civicrm_contribution_page`
SET `title` = ''
WHERE `title` IS NULL;

UPDATE `civicrm_contribution_page`
SET `frontend_title` = `title`
WHERE `frontend_title` IS NULL OR `frontend_title` = '';
Expand Down

0 comments on commit 928d0e4

Please sign in to comment.