mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
fixed minor error function reporting
(cherry picked from commit d50f1f8f3af81211ead92a237786dac8c6744947)
This commit is contained in:
parent
b972d10b1f
commit
331f8f3e2f
@ -1972,24 +1972,18 @@ else {
|
|||||||
"reporting_" . $activeTab . "_tab", false, $buttons);
|
"reporting_" . $activeTab . "_tab", false, $buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($resultOperationDB !== null) {
|
if ($resultOperationDB !== null) {
|
||||||
|
|
||||||
|
|
||||||
$err = '';
|
$err = '';
|
||||||
/*
|
switch ($_POST['type']) {
|
||||||
if($_POST[sla_min]==''){
|
case 'custom_graph':
|
||||||
$err.='You must enter some character in SLA min field<br>';
|
$err.='You must enter custom graph';
|
||||||
|
break;
|
||||||
|
case 'SLA':
|
||||||
|
$err.='You must enter some character in SLA limit field';
|
||||||
|
default:
|
||||||
|
$err.='';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if($_POST[sla_max]==''){
|
|
||||||
$err.='You must enter some character in SLA max field<br>';
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
if($_POST[sla_limit]==''){
|
|
||||||
$err.='You must enter some character in SLA limit field';
|
|
||||||
}
|
|
||||||
|
|
||||||
ui_print_result_message ($resultOperationDB, __('Successfull action'), __('Unsuccessfull action<br><br>'.$err));
|
ui_print_result_message ($resultOperationDB, __('Successfull action'), __('Unsuccessfull action<br><br>'.$err));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user