[Koha-patches] [PATCH] (bug #3826) improve modrequest.pl
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Wed Dec 2 12:00:25 CET 2009
This patch modify the redirect done by modrequest, to return to the referer page. It permit to go back to circ/circulation.pl.
---
reserve/modrequest.pl | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/reserve/modrequest.pl b/reserve/modrequest.pl
index a88b67c..5d4205c 100755
--- a/reserve/modrequest.pl
+++ b/reserve/modrequest.pl
@@ -68,8 +68,5 @@ else {
}
}
my $from=$query->param('from');
-if ($from eq 'borrower'){
- print $query->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrower[0]");
- } else {
- print $query->redirect("/cgi-bin/koha/reserve/request.pl?biblionumber=$biblionumber[0]");
-}
+
+print $query->redirect($query->referer());
--
1.6.3.3
More information about the Koha-patches
mailing list