Bug 5144: Don't display the failed_holds param in the url if not needed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 6 Oct 2015 12:59:04 +0000 (13:59 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 6 Oct 2015 13:02:06 +0000 (10:02 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-reserve.pl

index 6e35c18..ef81b1d 100755 (executable)
@@ -297,7 +297,7 @@ if ( $query->param('place_reserve') ) {
         }
     }
 
-    print $query->redirect("/cgi-bin/koha/opac-user.pl?failed_holds=$failed_holds#opac-user-holds");
+    print $query->redirect("/cgi-bin/koha/opac-user.pl?" . ( $failed_holds ? "failed_holds=$failed_holds" : q|| ) . "#opac-user-holds");
     exit;
 }