2009-01-20 Esteban Sanchez <estebans@artica.es>

* godmode/alerts/configure_alert_template.php: Fixed an error when
	setting max and min values on template creation.

	* godmode/menu.php: Default action on "Manage alerts" is showing the
	templates now.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2009-01-20 20:36:30 +00:00
parent 647202d01a
commit 845fe9c90c
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2009-01-20 Esteban Sanchez <estebans@artica.es>
* godmode/alerts/configure_alert_template.php: Fixed an error when
setting max and min values on template creation.
* godmode/menu.php: Default action on "Manage alerts" is showing the
templates now.
2009-01-20 Sancho Lerena <slerena@artica.es>
* install.php: Added ldap module dep.

View File

@ -105,7 +105,7 @@ function print_alert_template_example ($id, $return = false) {
$output .= __('The alert would fire when the value is <span id="value"></span>');
break;
case 'equal':
/* Do not translate the HTML attributes */
/* Do not translate the HTML attributes */
$output .= __('The alert would fire when the value is not <span id="value"></span>');
break;
case 'regex':
@ -285,8 +285,8 @@ if ($create_template) {
$result = create_alert_template ($name, $type,
array ('description' => $description,
'value' => $value,
'max' => $max,
'min' => $min));
'max_value' => $max,
'min_value' => $min));
print_error_message ($result, __('Successfully created'),
__('Could not be created'));

View File

@ -61,7 +61,7 @@ if (give_acl ($config['id_user'], 0, "PM")) {
if (give_acl ($config['id_user'], 0, "LM")) {
$menu["galertas"]["text"] = __('Manage alerts');
$menu["galertas"]["sec2"] = "godmode/alerts/modify_alert";
$menu["galertas"]["sec2"] = "godmode/alerts/alert_templates";
$menu["galertas"]["id"] = "god-alerts";
$sub = array ();