mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Preserve link order set by application
This commit is contained in:
parent
d6c0272023
commit
73dbaa0dfb
@ -108,9 +108,11 @@ class Link extends Etemplate\Widget
|
||||
|
||||
$links = Api\Link::query($app, $pattern, $options);
|
||||
|
||||
// Add ' ' to key so javascript does not parse it as a number.
|
||||
// This preserves the order set by the application.
|
||||
$linksc = array_combine(array_map(function($k)
|
||||
{
|
||||
return (string)$k;
|
||||
return (string)" ".$k;
|
||||
}, array_keys($links)), $links);
|
||||
|
||||
$response = Api\Json\Response::get();
|
||||
|
Loading…
Reference in New Issue
Block a user