mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
BUG Skip SiteConfig->populateDefaults() on first dev/build
This commit is contained in:
parent
a44546bcdd
commit
00dda353e3
@ -1147,6 +1147,7 @@ class Translatable extends DataExtension implements PermissionProvider {
|
||||
// Work-around for population of defaults during database initialisation.
|
||||
// When the database is being setup singleton('SiteConfig') is called.
|
||||
if(!DB::getConn()->hasTable($this->owner->class)) return;
|
||||
if(!DB::getConn()->hasField($this->owner->class, 'Locale')) return;
|
||||
|
||||
// Find the best base translation for SiteConfig
|
||||
Translatable::disable_locale_filter();
|
||||
|
Loading…
Reference in New Issue
Block a user