diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php
index 35fd0c2e3d..1b3c0d7bfb 100755
--- a/pandora_console/godmode/reporting/reporting_builder.php
+++ b/pandora_console/godmode/reporting/reporting_builder.php
@@ -1972,24 +1972,18 @@ else {
"reporting_" . $activeTab . "_tab", false, $buttons);
}
-
-
if ($resultOperationDB !== null) {
-
-
$err = '';
- /*
- if($_POST[sla_min]==''){
- $err.='You must enter some character in SLA min field
';
+ 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;
}
- if($_POST[sla_max]==''){
- $err.='You must enter some character in SLA max field
';
- }
- */
- if($_POST[sla_limit]==''){
- $err.='You must enter some character in SLA limit field';
- }
-
ui_print_result_message ($resultOperationDB, __('Successfull action'), __('Unsuccessfull action
'.$err));
}