From 5c8844f12d8c39cee287a2527285807ff4af0af1 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 19 Nov 2019 16:59:06 +0000 Subject: [PATCH] Bug 23634: (follow-up) Prevent updates on POST Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi Signed-off-by: Marcel de Rooy Signed-off-by: Aleisha Amohia (cherry picked from commit 32c1f27c74b17a7d22a1a95cccffbe320810b6df) Signed-off-by: Victor Grousset/tuxayo --- members/memberentry.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index c414a64bb4..978675bc37 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -529,7 +529,14 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ delete $newdata{'userid'}; } - my $patron = Koha::Patrons->find( $borrowernumber ); + $patron = Koha::Patrons->find( $borrowernumber ); + + if ($NoUpdateEmail) { + delete $newdata{'email'}; + delete $newdata{'emailpro'}; + delete $newdata{'B_email'}; + } + $newdata{debarredcomment} = $newdata{debarred_comment}; delete $newdata{debarred_comment}; delete $newdata{password2}; -- 2.39.5