FIX: add deletable fields into in widgets and widget area models
This commit is contained in:
@@ -17,7 +17,9 @@ class Widget extends Model
|
||||
'user_id',
|
||||
'name',
|
||||
'settings',
|
||||
'description'
|
||||
'language',
|
||||
'description',
|
||||
'deletable'
|
||||
];
|
||||
protected $guarded = [];
|
||||
|
||||
@@ -31,7 +33,6 @@ class Widget extends Model
|
||||
*/
|
||||
public function createNew(WidgetType $widgetType, $data)
|
||||
{
|
||||
|
||||
// convert array or whatever into object
|
||||
if (!is_object($data)) {
|
||||
$data = (object)$data;
|
||||
|
||||
Reference in New Issue
Block a user