2012-04-13 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed entities trouble in the action exist check git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5966 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d69755ee59
commit
5ba12da9d3
|
@ -1,3 +1,8 @@
|
|||
2012-04-13 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* util/pandora_manage.pl: Fixed entities trouble in the action
|
||||
exist check
|
||||
|
||||
2012-04-12 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/DB.pm,
|
||||
|
|
|
@ -1475,7 +1475,7 @@ sub cli_create_template_action() {
|
|||
exist_check($template_id,'template',$template_name);
|
||||
my $template_module_id = get_template_module_id($dbh,$module_id,$template_id);
|
||||
exist_check($template_module_id,'template module',$template_name);
|
||||
my $action_id = get_action_id($dbh,$action_name);
|
||||
my $action_id = get_action_id($dbh,safe_input($action_name));
|
||||
exist_check($action_id,'action',$action_name);
|
||||
|
||||
$fires_min = 0 unless defined ($fires_min);
|
||||
|
@ -1509,7 +1509,7 @@ sub cli_delete_template_action() {
|
|||
exist_check($template_id,'template',$template_name);
|
||||
my $template_module_id = get_template_module_id($dbh,$module_id,$template_id);
|
||||
exist_check($template_module_id,'template module',$template_name);
|
||||
my $action_id = get_action_id($dbh,$action_name);
|
||||
my $action_id = get_action_id($dbh,safe_input($action_name));
|
||||
exist_check($action_id,'action',$action_name);
|
||||
|
||||
pandora_delete_template_module_action ($dbh, $template_module_id, $action_id);
|
||||
|
|
Loading…
Reference in New Issue