2012-11-05 Miguel de Dios <miguel.dedios@artica.es>

* 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
This commit is contained in:
mdtrooper 2012-11-05 13:03:09 +00:00
parent 32fd0fd87c
commit e5bb1f6962
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2012-11-05 Miguel de Dios <miguel.dedios@artica.es>
* 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 <miguel.dedios@artica.es>
* operation/events/events.php: cleaned source code style.

View File

@ -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'];
}