This patch fixes the broken pagination in members-search.pl
authorKoustubha Kale <kmkale@anantcorp.com>
Sat, 2 Apr 2011 16:53:06 +0000 (22:23 +0530)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 02:25:20 +0000 (14:25 +1200)
Small patch to fix Error 404 which comes up when we click on pagination links after searching in Patron Card creator.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
patroncards/members-search.pl

index 42fbba7..c2abe07 100755 (executable)
@@ -92,7 +92,7 @@ if ($member || $category) {
         );
         push(@resultsdata, \%row);
     }
-    my $base_url = __FILE__ . '?' . join('&amp;', map { $_->{term} . ' = ' . $_->{val} } (
+    my $base_url = '?' . join('&amp;', map { $_->{term} . '=' . $_->{val} } (
                                             { term => 'member',         val => $member         },
                                             { term => 'category',       val => $category       },
                                             { term => 'orderby',        val => $orderby        },