Bug 23634: (follow-up) Prevent updates on POST

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3e213d65860ab4fcb6a425244729ac4a9fe8c19f)
This commit is contained in:
Martin Renvoize 2019-11-19 16:59:06 +00:00 committed by Lucas Gass
parent 7071bb8149
commit 3ca75f56ff
1 changed files with 7 additions and 0 deletions

View File

@ -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};