X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=tools%2Fmodborrowers.pl;fp=tools%2Fmodborrowers.pl;h=50bb668d68d91f2f3bedce34f870395f258443d1;hb=b35d34e2ae4713c1f2f524ac565e2623e9f5243a;hp=309ad60650dd29d23499b5b47f55bf5c9c494ecb;hpb=a6c6946dfc89b523988fc9478a94040d81d287a8;p=koha.git diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl index 309ad60650..50bb668d68 100755 --- a/tools/modborrowers.pl +++ b/tools/modborrowers.pl @@ -186,7 +186,7 @@ if ( $op eq 'show' ) { { name => "sort1", lib => "Sort 1", - type => "select", + type => @sort1_option ? "select" : "text", option => \@sort1_option, mandatory => ( grep /sort1/, @mandatoryFields ) ? 1 : 0, } @@ -194,7 +194,7 @@ if ( $op eq 'show' ) { { name => "sort2", lib => "Sort 2", - type => "select", + type => @sort2_option ? "select" : "text", option => \@sort2_option, mandatory => ( grep /sort2/, @mandatoryFields ) ? 1 : 0, }