Browse Source

Bug 24940: Serials statistics wizard: order vendor list alphabetically

This patch changes the dropdown from being sorted by aqbookseller.id to
aqbookseller.name

To test:
1) Add at least 2 vendors:
 - First: ZZZZ
 - Second: AAAA
2) Add subscriptions for each of the vendors
3) Check the pull down in the serials statistics wizard and verify it
lists them as ZZZZ, AAAA
4) Apply the patch
5) Re-check the pull down in the wizard and check that the vendors are
now listed AAAA,ZZZZ

Signed-off-by: Devinim <kohadevinim@devinim.com.tr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
David Roberts 3 years ago
committed by Martin Renvoize
parent
commit
9789a43025
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 3
      reports/serials_stats.pl

3
reports/serials_stats.pl

@ -138,7 +138,8 @@ if($do_it){
my $sth = $dbh->prepare("SELECT aqbooksellerid, aqbooksellers.name
FROM subscription
LEFT JOIN aqbooksellers ON (subscription.aqbooksellerid=aqbooksellers.id )
GROUP BY aqbooksellerid");
ORDER BY aqbooksellers.name ASC
");
$sth->execute();
while(my $row = $sth->fetchrow_hashref){

Loading…
Cancel
Save