Bug 21087: Fix one wrong call

Signed-off-by: John Doe <you@example.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2018-07-25 10:37:57 -03:00 committed by Tomas Cohen Arazi
parent 2e6fb40ef8
commit ce1f9033fb
1 changed files with 3 additions and 1 deletions

View File

@ -537,7 +537,9 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){
# updating any columns in the borrowers table,
# which can happen if we're only editing the
# patron attributes or messaging preferences sections
$patron->update_password($newdata{password}); # If != **** or '' # test here?
$patron->update_password($newdata{userid}, $newdata{password});
if (C4::Context->preference('ExtendedPatronAttributes') and $input->param('setting_extended_patron_attributes')) {
C4::Members::Attributes::SetBorrowerAttributes($borrowernumber, $extended_patron_attributes);
}