Fixed problems with function and pass variables. Tiquet: #2856
(cherry picked from commit bea8170120
)
This commit is contained in:
parent
eb8d2c786d
commit
3ed5e1295c
|
@ -1922,8 +1922,8 @@ function html_html2rgb($htmlcolor)
|
||||||
* @return mixed If the $return is true, return the output as string.
|
* @return mixed If the $return is true, return the output as string.
|
||||||
*/
|
*/
|
||||||
function html_print_autocomplete_modules($name = 'module',
|
function html_print_autocomplete_modules($name = 'module',
|
||||||
$default = '', $id_agents = false, $id_agent_module = 0, $ACL = true, $scriptResult = '',
|
$default = '', $id_agents = false, $ACL = true, $scriptResult = '',
|
||||||
$filter = array(), $return = false) {
|
$filter = array(), $return = false,$id_agent_module = 0) {
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
|
|
@ -390,7 +390,7 @@ $data[0] .= html_print_select($user_users, "id_user_ack", $id_user_ack, '',
|
||||||
if (!$meta) {
|
if (!$meta) {
|
||||||
$data[1] = __('Module search') . '<br>';
|
$data[1] = __('Module search') . '<br>';
|
||||||
$data[1] .= html_print_autocomplete_modules('module_search',
|
$data[1] .= html_print_autocomplete_modules('module_search',
|
||||||
$text_module, false, $id_agent_module, true, '', array(), true);
|
$text_module, false, true, '', array(), true,$id_agent_module);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[1] .= '';
|
$data[1] .= '';
|
||||||
|
|
Loading…
Reference in New Issue