Bug 5742: Followup: sort* fields can to be filled with an input text
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 5 Apr 2012 08:13:41 +0000 (10:13 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 15 May 2012 15:45:12 +0000 (17:45 +0200)
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
tools/modborrowers.pl

index 309ad60..50bb668 100755 (executable)
@@ -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,
         }