mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
Preserve link order set by application
This commit is contained in:
parent
4e793ff426
commit
c7996ae42e
@ -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