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)) {
|
||||
// this field is not part of "core" content - probably it will be module settings
|
||||
$commonField = false;
|
||||
$fieldValue = $this->module_settings->$fieldDB;
|
||||
$fieldValue = isset($this->module_settings->$fieldDB) ? $this->module_settings->$fieldDB : null;
|
||||
} else {
|
||||
$commonField = true;
|
||||
$fieldValue = $this->$fieldDB;
|
||||
|
||||
Reference in New Issue
Block a user