redirect to list items when update item

This commit is contained in:
marcos 2019-10-15 14:13:07 +02:00
parent e363b17476
commit 8999f408ef
1 changed files with 28 additions and 12 deletions

View File

@ -3142,6 +3142,7 @@ if ($enterpriseEnable && defined('METACONSOLE')) {
break;
}
if ($action !== 'update') {
ui_print_page_header(
$textReportName,
'images/op_reporting.png',
@ -3154,6 +3155,7 @@ if ($enterpriseEnable && defined('METACONSOLE')) {
60
);
}
}
if ($resultOperationDB !== null) {
$err = '';
@ -3175,8 +3177,22 @@ if ($resultOperationDB !== null) {
__('Unsuccessful action<br><br>'.$err)
);
if ($resultOperationDB != null && $activeTab == 'item_editor') {
if ($action == 'update') {
$buttons[$activeTab]['active'] = false;
$activeTab = 'list_items';
$buttons[$activeTab]['active'] = true;
ui_print_page_header(
$textReportName,
'images/op_reporting.png',
false,
$helpers,
false,
$buttons,
false,
'',
60
);
}
}