projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ef4190
)
CVar-Helfer: cvars_by_config nach Config-Reihenfolge sortiert zurückgeben
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 5 Apr 2016 12:13:21 +0000
(14:13 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 6 Apr 2016 14:05:32 +0000
(16:05 +0200)
SL/DB/Helper/CustomVariables.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/CustomVariables.pm
b/SL/DB/Helper/CustomVariables.pm
index
6ebebda
..
9de8394
100644
(file)
--- a/
SL/DB/Helper/CustomVariables.pm
+++ b/
SL/DB/Helper/CustomVariables.pm
@@
-4,6
+4,7
@@
use strict;
use Carp;
use Data::Dumper;
use List::Util qw(first);
+use List::UtilsBy qw(sort_by);
use constant META_CVARS => 'cvars_config';
@@
-98,6
+99,8
@@
sub make_cvar_by_configs {
@$configs
);
+ @return = sort_by { $_->config->sortkey } @return;
+
return \@return;
}
}