From 488c853373c0ddcaa1fa7b72d8c6049160d2efff Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 5 Nov 2012 13:03:09 +0000 Subject: [PATCH] 2012-11-05 Miguel de Dios * include/functions_ui.php: improved the function "ui_print_agent_autocomplete_input" to get the default value for "hidden_input_idagent_value" from the GET or POST instead to set as 0. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7130 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_ui.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cf9c1c6243..5aa14a24f4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2012-11-05 Miguel de Dios + + * include/functions_ui.php: improved the function + "ui_print_agent_autocomplete_input" to get the default value for + "hidden_input_idagent_value" from the GET or POST instead to set + as 0. + 2012-11-05 Miguel de Dios * operation/events/events.php: cleaned source code style. diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index cb3248b609..0e1cf1e4ea 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2350,7 +2350,7 @@ function ui_print_agent_autocomplete_input($parameters) { $hidden_input_idagent_id = $parameters['hidden_input_idagent_id']; } - $hidden_input_idagent_value = 0; //Default value + $hidden_input_idagent_value = (int)get_parameter($hidden_input_idagent_name, 0); //Default value if (isset($parameters['hidden_input_idagent_value'])) { $hidden_input_idagent_value = $parameters['hidden_input_idagent_value']; }