From 1184c0a0d3999d4a42a832ae8c1b032eec58bc03 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 --- C4/Members.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Members.pm b/C4/Members.pm index 8cc32bdc64..4a0a3a1c23 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -1249,6 +1249,7 @@ sub checkuniquemember { "SELECT borrowernumber,categorycode FROM borrowers WHERE surname=? and firstname=? and dateofbirth=?" : "SELECT borrowernumber,categorycode FROM borrowers WHERE surname=? and firstname=?"; my $sth = $dbh->prepare($request); + warn $request; if ($collectivity) { $sth->execute( uc($surname) ); } elsif($dateofbirth){ -- 2.39.5