mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fix success message position on edit report items
This commit is contained in:
parent
3f7067fe48
commit
e95f2cd09d
@ -3552,25 +3552,6 @@ if ($enterpriseEnable && defined('METACONSOLE')) {
|
||||
}
|
||||
|
||||
if ($resultOperationDB !== null) {
|
||||
$err = '';
|
||||
switch ($_POST['type']) {
|
||||
case 'custom_graph':
|
||||
$err .= 'You must enter custom graph';
|
||||
break;
|
||||
|
||||
case 'SLA':
|
||||
$err .= 'You must enter some character in SLA limit field';
|
||||
default:
|
||||
$err .= '';
|
||||
break;
|
||||
}
|
||||
|
||||
ui_print_result_message(
|
||||
$resultOperationDB,
|
||||
__('Successfull action'),
|
||||
__('Unsuccessful action<br><br>'.$err)
|
||||
);
|
||||
|
||||
if ($action == 'update') {
|
||||
$buttons[$activeTab]['active'] = false;
|
||||
$activeTab = 'list_items';
|
||||
@ -3598,6 +3579,25 @@ if ($resultOperationDB !== null) {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$err = '';
|
||||
switch ($_POST['type']) {
|
||||
case 'custom_graph':
|
||||
$err .= 'You must enter custom graph';
|
||||
break;
|
||||
|
||||
case 'SLA':
|
||||
$err .= 'You must enter some character in SLA limit field';
|
||||
default:
|
||||
$err .= '';
|
||||
break;
|
||||
}
|
||||
|
||||
ui_print_result_message(
|
||||
$resultOperationDB,
|
||||
__('Successfull action'),
|
||||
__('Unsuccessful action<br><br>'.$err)
|
||||
);
|
||||
}
|
||||
|
||||
switch ($activeTab) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user