From f925a4102e882ad0699b0ca2ab4f3b4c5aa2bf7c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 15 Nov 2012 13:06:55 +0100 Subject: [PATCH] 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. --- code/model/Translatable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 6d02c78..2dbba2e 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -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();