Skip to content

Commit

Permalink
Merge pull request #10399 from seamuslee001/multilingual_fix
Browse files Browse the repository at this point in the history
CRM-20623 Ensure that after using the Add Column method that Multilin…
  • Loading branch information
eileenmcnaughton authored May 23, 2017
2 parents 1a86433 + 150676a commit 3920cb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Upgrade/Incremental/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ public static function addColumn($ctx, $table, $column, $properties) {
CRM_Core_DAO::executeQuery("ALTER TABLE `$table` ADD COLUMN `$column` $properties",
array(), TRUE, NULL, FALSE, FALSE);
}
$domain = new CRM_Core_DAO_Domain();
$domain->find(TRUE);
if ($domain->locales) {
$locales = explode(CRM_Core_DAO::VALUE_SEPARATOR, $domain->locales);
CRM_Core_I18n_Schema::rebuildMultilingualSchema($locales, NULL);
}
return TRUE;
}

Expand Down

0 comments on commit 3920cb5

Please sign in to comment.