FIX: fix saving new column type for content
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user