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:
parent
7071bb8149
commit
3ca75f56ff
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in New Issue