Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev/core#4213 Make frontend_title, name required for Group entity
This follows up on having done this for contribution_page recently. It will mean we can consistently refer to frontend_title in tokens and other places where what we really mean is ... frontend_title.
- Loading branch information
1 parent
f600453
commit f5778c8
Showing
14 changed files
with
85 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
{* file to handle db changes in 5.65.alpha1 during upgrade *} | ||
|
||
-- Ensure new name field is not null/unique. Setting to ID is a bit lazy - but it works. | ||
UPDATE civicrm_group SET `name` = `id` WHERE name IS NULL; | ||
|
||
-- Add name field, make frontend_title required (in conjunction with php function) | ||
{if $multilingual} | ||
{foreach from=$locales item=locale} | ||
UPDATE `civicrm_group` | ||
SET `frontend_title_{$locale}` = `title_{$locale}`, | ||
`frontend_description_{$locale}` = `description` | ||
WHERE `frontend_description_{$locale}` IS NULL OR `frontend_description_{$locale}` = ''; | ||
{/foreach} | ||
{else} | ||
UPDATE `civicrm_group` | ||
SET `frontend_title` = `title` | ||
WHERE `frontend_title` IS NULL OR `frontend_title` = ''; | ||
|
||
UPDATE `civicrm_group` | ||
SET `frontend_description` = `description` | ||
WHERE `frontend_description` IS NULL OR `frontend_description` = '' AND description <> ''; | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters