Skip to content
Browse files

BUG Skip SiteConfig->populateDefaults() on first dev/build

  • Loading branch information...
1 parent a44546b commit 00dda353e3411122879cd40cffb3b5552ea2f7f6 @chillu chillu committed Sep 22, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 code/model/Translatable.php
View
1 code/model/Translatable.php
@@ -1147,6 +1147,7 @@ protected function populateSiteConfigDefaults() {
// 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();

0 comments on commit 00dda35

Please sign in to comment.
Something went wrong with that request. Please try again.