From 3ca75f56ffcf7d162a49f4783f8b37457a2a3ade 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: Lucas Gass (cherry picked from commit 3e213d65860ab4fcb6a425244729ac4a9fe8c19f) --- members/memberentry.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/members/memberentry.pl b/members/memberentry.pl index eb6d63d208..0bbb8422af 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -526,6 +526,13 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ } $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