From 71342adba75f5846c87acdcbe9a73396376360bc Mon Sep 17 00:00:00 2001 From: oleonard Date: Wed, 16 Feb 2005 20:23:58 +0000 Subject: [PATCH] Using destination parameter to return users to circulation if they clicked the 'edit' link from the circulation screen --- members/memberentry.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/members/memberentry.pl b/members/memberentry.pl index 0834f8164e..0f2223f43f 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -58,6 +58,7 @@ my $modify=$input->param('modify'); my $delete=$input->param('delete'); my $op=$input->param('op'); my $categorycode=$input->param('categorycode'); +my $destination=$input->param('destination'); my $nok; # if a add or modify is requested => check validity of data. @@ -121,7 +122,12 @@ if ($op eq 'add' or $op eq 'modify') { }else{ $data{borrowernumber} = &newmember(%data); } + + if($destination eq "circ"){ + print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$data{'cardnumber'}"); + } else { print $input->redirect("/cgi-bin/koha/members/moremember.pl?bornum=$data{'borrowernumber'}"); + } } } if ($delete){ @@ -228,6 +234,7 @@ if ($delete){ -multiple => 0 ); $template->param( actionType => $actionType, + destination => $destination, member => $member, address => $data->{'streetaddress'}, firstname => $data->{'firstname'}, -- 2.39.5