Bug 21456: (QA follow-up) Catch missed case in authorities merge
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 8 Oct 2018 14:25:50 +0000 (15:25 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 17 Oct 2018 13:52:23 +0000 (13:52 +0000)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

authorities/merge.pl

index 9f72541..9bd91b5 100755 (executable)
@@ -196,7 +196,7 @@ else {
                 title2          => $recordObj2->authorized_heading,
             );
             if ( $recordObj1->authtypecode ne $recordObj2->authtypecode ) {
-                my $authority_types = Koha::Authority::Types->search( { authtypecode => { '!=' => '' } }, { order_by => ['authtypecode'] } );
+                my $authority_types = Koha::Authority::Types->search( { authtypecode => { '!=' => '' } }, { order_by => ['authtypetext'] } );
                 $template->param(
                     frameworkselect => $authority_types->unblessed,
                     frameworkcode1  => $recordObj1->authtypecode,