FIX: fix saving new widget without container ID
This commit is contained in:
@@ -46,7 +46,7 @@ class Widget extends Model
|
||||
$widget->user_id = \Auth::user()->id;
|
||||
$widget->name = $data->name;
|
||||
$widget->container_class = $data->containerClass;
|
||||
$widget->container_id = $data->containerId;
|
||||
$widget->container_id = empty($data->containerId) ? null : $data->containerId;
|
||||
|
||||
// save description if available
|
||||
if (isset($data->description)) {
|
||||
|
||||
Reference in New Issue
Block a user