Fix for bug 1552, fix ordering of issued items
[koha_gimpoz] / admin / itemtypecategory.pl
old mode 100644 (file)
new mode 100755 (executable)
index c59ff6d..6f8b41e
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 sub StringSearch  {
-       my ($env,$searchstring,$type)=@_;
+       my ($searchstring,$type)=@_;
        my $dbh = C4::Context->dbh;
        $searchstring=~ s/\'/\\\'/g;
        my @data=split(' ',$searchstring);
@@ -164,8 +163,7 @@ if ($op eq 'add_form') {
                                                                                                        # END $OP eq DELETE_CONFIRMED
 ################## DEFAULT ##################################
 } else { # DEFAULT
-       my $env;
-       my ($count,$results)=StringSearch($env,$searchfield,'web');
+       my ($count,$results)=StringSearch($searchfield,'web');
        my $toggle=0;
        my @loop_data;
        for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){