mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
BUG dev/build fails to add extra fields to SiteConfig (fixes #65)
Caused by Translatable->populateSiteConfigDefaults() triggering before newly created fields are available in the "SiteConfig" database table.
This commit is contained in:
parent
6413eca05d
commit
f925a4102e
@ -1198,6 +1198,7 @@ class Translatable extends DataExtension implements PermissionProvider {
|
||||
// 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;
|
||||
if(DB::getConn()->isSchemaUpdating()) return;
|
||||
|
||||
// Find the best base translation for SiteConfig
|
||||
Translatable::disable_locale_filter();
|
||||
|
Loading…
Reference in New Issue
Block a user