From c13c16bf9940cd87e869a4fc40f2947427542018 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Tue, 8 Apr 2008 17:43:51 -0500 Subject: [PATCH] Allow param "bornum" as in template, not just "borrowernumber". Added FIXMEs. Signed-off-by: Joshua Ferraro --- opac/opac-renew.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opac/opac-renew.pl b/opac/opac-renew.pl index 0832b5e5d0..195e8274fe 100755 --- a/opac/opac-renew.pl +++ b/opac/opac-renew.pl @@ -21,13 +21,15 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); my $itemnumber = $query->param('item'); -my $borrowernumber = $query->param("borrowernumber"); +my $borrowernumber = $query->param('borrowernumber') || $query->param('bornum'); my ($status,$error) = CanBookBeRenewed( $borrowernumber, $itemnumber ); if ( $status == 1 ) { AddRenewal( $borrowernumber, $itemnumber ); } +# FIXME: else return ERROR to user!! if ( $query->param('from') eq 'opac_user' ) { print $query->redirect("/cgi-bin/koha/opac-user.pl"); -} +} +# FIXME: ELSE WHAT? No response at all. Not very robust. -- 2.39.5