FIX: fix saving address widget

This commit is contained in:
Michal Kváček
2017-03-02 23:16:58 +01:00
parent eff61a1481
commit 57f9c21a43
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class Widget
$widget->name = $data['name'];
$widget->description = $data['description'];
$widget->container_class = $data['containerClass'];
$widget->container_id = $data['containerId'];
$widget->container_id = empty($data['containerId']) ? null : $data['containerId'];
$widget->settings = json_encode(call_user_func([$widgetType->handler, 'save'], $request));
// save into database