From 37090d171ad1721b711acbe69f7e5789a2577c54 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 9 Jan 2008 14:02:12 -0600 Subject: [PATCH] Changing circ redirect to use borrowernumber instead of cardnumber: If you edited a patron's record to change their cardnumber the redirect would fail because it used the old number. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index d4b658698c..2f8b659aa4 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -235,7 +235,7 @@ if ((!$nok) and ($op eq 'insert' or $op eq 'save')){ &ModMember(%newdata); } print scalar ($destination eq "circ") ? - $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$data{'cardnumber'}") : + $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber") : $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber") ; exit; # You can only send 1 redirect! After that, content or other headers don't matter. } -- 2.39.5