Fixed item save

This commit is contained in:
Daniel Maya 2019-06-20 16:36:24 +02:00
parent e182997308
commit 71ea94eea3
2 changed files with 5 additions and 2 deletions

View File

@ -188,7 +188,8 @@ function createVisualConsole(
var id = e.item.props.id; var id = e.item.props.id;
var data = { var data = {
width: e.newSize.width, width: e.newSize.width,
height: e.newSize.height height: e.newSize.height,
type: e.item.props.type
}; };
var taskId = "visual-console-item-resize-" + id; var taskId = "visual-console-item-resize-" + id;

View File

@ -57,7 +57,9 @@ if ($getVisualConsole === true) {
$item_data['id_layout'] = $visualConsoleId; $item_data['id_layout'] = $visualConsoleId;
$item = $class::fromDB($item_data); $item = $class::fromDB($item_data);
$item->save($data); $result = $item->save($data);
echo json_encode($result);
} }
exit; exit;