mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Use json_encode() instead of removed convert_phparray_jsarray()
This commit is contained in:
parent
5443acbb21
commit
58ce706d2c
@ -235,11 +235,11 @@ class ajax_select_widget
|
||||
unset($options[$key]);
|
||||
}
|
||||
}
|
||||
$options = $GLOBALS['egw']->js->convert_phparray_jsarray("options['$name']", $options, true);
|
||||
$options = json_encode($options);
|
||||
$GLOBALS['egw']->js->set_onload("if(!options) {
|
||||
var options = new Object();
|
||||
}\n
|
||||
$options;\n
|
||||
options['$name'] = $options;
|
||||
ajax_select_widget_setup('$name', '$onchange', options['$name'], '" . $GLOBALS['egw_info']['flags']['currentapp'] . "');
|
||||
");
|
||||
$GLOBALS['egw']->js->validate_file('.', 'ajax_select', 'etemplate');
|
||||
|
Loading…
Reference in New Issue
Block a user