Bug 21087: Fix one wrong call
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 25 Jul 2018 13:37:57 +0000 (10:37 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 30 Jul 2018 17:58:06 +0000 (14:58 -0300)
Signed-off-by: John Doe <you@example.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

members/memberentry.pl

index ff77fbe..b48975a 100755 (executable)
@@ -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);
         }