From c82ffac5454aa9931b4031b40756ae183a2ac27b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 14 Jan 2014 11:31:33 +0000 Subject: [PATCH] Fix wrong order of search result in linkto --- etemplate/inc/class.etemplate_widget_link.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_link.inc.php b/etemplate/inc/class.etemplate_widget_link.inc.php index cec427ab1d..d56360f087 100644 --- a/etemplate/inc/class.etemplate_widget_link.inc.php +++ b/etemplate/inc/class.etemplate_widget_link.inc.php @@ -93,7 +93,7 @@ class etemplate_widget_link extends etemplate_widget public static function ajax_link_search($app, $type, $pattern, $options=array()) { $options['type'] = $type ? $type : $options['type']; $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->data($links); }