From 83d041c877f40aebd75c3e47bc901bc5a2353dd4 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 24 Sep 2013 14:51:58 +0000 Subject: [PATCH] 2013-09-24 Sergio Martin * godmode/reporting/reporting_builder.item_editor.php: Added error message when try to add a new SLA item without configure parameters git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8804 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/reporting/reporting_builder.item_editor.php | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 554cc7c2e3..16464738c9 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-09-24 Sergio Martin + + * godmode/reporting/reporting_builder.item_editor.php: Added + error message when try to add a new SLA item without configure + parameters + 2013-09-24 Sergio Martin * include/styles/pandora.css diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index f425d11e95..9dbdc8c5ff 100644 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -1054,8 +1054,9 @@ echo ''; ui_require_jquery_file ("ui-timepicker-addon"); ui_require_javascript_file('pandora'); // This script is included manually to be included after jquery and avoid error -echo ''; -ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/"); +if(file_exists('include/javascript/i18n/jquery-ui-timepicker-' . get_user_language() . '.js')) { + echo ''; +} if ($enterpriseEnable) { reporting_enterprise_text_box(); @@ -1641,6 +1642,9 @@ function addSLARow() { } }); } + else { + alert(''); + } } function addGeneralRow() {