mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix wrong order of search result in linkto
This commit is contained in:
parent
3bef4b2a26
commit
c82ffac545
@ -93,7 +93,7 @@ class etemplate_widget_link extends etemplate_widget
|
|||||||
public static function ajax_link_search($app, $type, $pattern, $options=array()) {
|
public static function ajax_link_search($app, $type, $pattern, $options=array()) {
|
||||||
$options['type'] = $type ? $type : $options['type'];
|
$options['type'] = $type ? $type : $options['type'];
|
||||||
$links = egw_link::query($app, $pattern, $options);
|
$links = egw_link::query($app, $pattern, $options);
|
||||||
|
$links = array_combine(array_map(create_function('$k', 'return (string)" ".$k;'), array_keys($links)), $links);
|
||||||
$response = egw_json_response::get();
|
$response = egw_json_response::get();
|
||||||
$response->data($links);
|
$response->data($links);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user