[Koha-bugs] [Bug 3549] Framework sorting in addbook
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 14 18:52:05 CET 2011
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3549
Owen Leonard <oleonard at myacpl.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|PATCH-Sent |P5
Platform|PC |All
Patch Status|Patch Pushed |---
--- Comment #2 from Owen Leonard <oleonard at myacpl.org> 2011-02-14 17:52:05 UTC ---
The original patch changes this:
foreach my $thisframeworkcode ( keys %$frameworks ) {
to this:
foreach my $thisframeworkcode ( sort keys %$frameworks ) {
...which worka to have the framework list sorted by framework code, but since
the description is what is displayed sorting by code doesn't make much sense.
The actual commit made this change:
foreach my $thisframeworkcode ( sort {$frameworks->{$a} cmp
$frameworks->{$b}}keys %{$frameworks} ) {
...but this doesn't seem to work at all. Sorting appears random to me.
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Koha-bugs
mailing list