From f59b8138772a41cb972b1ae9cec6b93481fdfbe0 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Wed, 25 Jul 2018 10:37:57 -0300
Subject: [PATCH] Bug 21087: Fix one wrong call

Signed-off-by: John Doe <you@example.com>
---
 members/memberentry.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/members/memberentry.pl b/members/memberentry.pl
index ff77fbef0a..b48975ab6d 100755
--- a/members/memberentry.pl
+++ b/members/memberentry.pl
@@ -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);
         }
-- 
2.11.0