2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

95_Dashboard: fixed sorting issue in device groups

git-svn-id: https://svn.fhem.de/fhem/trunk@9020 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
talkabout 2015-08-04 19:38:13 +00:00
parent 0a2b131831
commit dadc577a9d
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 95_Dashboard: fixed sorting for grouped devices
- bugfix: 95_Dashboard: fixed style issue with colorpicker in ios6touchpad style
fixed issue with editing groups in the dashboard configuration dialog
- feature: 30_pilight_dimmer.pm: SetExtensions (on-for-timer, etc.)

View File

@ -762,6 +762,10 @@ sub BuildGroup
my %seen;
# make sure devices are not contained twice in the list
my @devices = grep { ! $seen{$_} ++ } devspec2array($devices);
# sort the devices in alphabetical order by sortby, alias, name
@devices = sort {
lc(AttrVal($a,'sortby',AttrVal($a,'alias',$a))) cmp lc(AttrVal($b,'sortby',AttrVal($b,'alias',$b)))
} @devices;
foreach my $d (@devices) {
next if (!defined($defs{$d}));