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: Aleisha Amohia <aleishaamohia@hotmail.com> (cherry picked from commit 32c1f27c74b17a7d22a1a95cccffbe320810b6df) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
106f939318
commit
5c8844f12d
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in New Issue