From 746a119ab595bf3f8f42f4feb4c8f763a06efa23 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Thu, 11 Dec 2008 10:08:15 +0100 Subject: [PATCH] (bug #2856) Activate the duplicate patrons detection and check birthdate only if one is set This patch activate the check of unique member, it was checked but not shown, and the member was added even if a duplicate was detected. It improve the duplicate detection, to check the birthdate only if it was specified in the form. And fix an url of "Yes" link(if the borrower added IS the duplicate detected). Signed-off-by: Galen Charlton --- members/memberentry.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index ea2507b848..3b62849c22 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -309,13 +309,13 @@ if ($delete){ } if ($nok or !$nodouble){ - $op="add" if ($op eq "insert"); - $op="modify" if ($op eq "save"); - %data=%newdata; - $template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! - unless ($step){ - $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1); - } + $op="add" if ($op eq "insert"); + $op="modify" if ($op eq "save"); + %data=%newdata; + $template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! + unless ($step){ + $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1); + } } if (C4::Context->preference("IndependantBranches")) { my $userenv = C4::Context->userenv; -- 2.39.5