redirect to list items when update item
This commit is contained in:
parent
e363b17476
commit
8999f408ef
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue