FIX: fix saving new column type for content

This commit is contained in:
Michal Kváček
2016-04-04 21:19:32 +02:00
parent 30dcd045a6
commit ceaf9e7d6a
+1 -1
View File
@@ -175,7 +175,7 @@ class Content extends Model
if (!in_array($fieldDB, $this->fillable)) { if (!in_array($fieldDB, $this->fillable)) {
// this field is not part of "core" content - probably it will be module settings // this field is not part of "core" content - probably it will be module settings
$commonField = false; $commonField = false;
$fieldValue = $this->module_settings->$fieldDB; $fieldValue = isset($this->module_settings->$fieldDB) ? $this->module_settings->$fieldDB : null;
} else { } else {
$commonField = true; $commonField = true;
$fieldValue = $this->$fieldDB; $fieldValue = $this->$fieldDB;