From 00dda353e3411122879cd40cffb3b5552ea2f7f6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 22 Sep 2012 16:44:52 +0200 Subject: [PATCH] BUG Skip SiteConfig->populateDefaults() on first dev/build --- code/model/Translatable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index cd08b77..a368d2d 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -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();