From 569e4080f10bdaf8dc5250cee0a168c31b066909 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 29 Apr 2019 11:49:04 -0400 Subject: [PATCH] Bug 20443: Fix Auth_with_ldap.t Must be a hashref Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- C4/Auth_with_ldap.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm index a85369b494..0599d9fb59 100644 --- a/C4/Auth_with_ldap.pm +++ b/C4/Auth_with_ldap.pm @@ -241,7 +241,7 @@ sub checkpw_ldap { if ( $patron ) { # Should not be needed, but we are in C4::Auth LDAP... eval { my $attribute = Koha::Patron::Attribute->new({code => $code, attribute => $borrower{$code}}); - $patron->extended_attributes([$attribute]); + $patron->extended_attributes([$attribute->unblessed]); }; if ($@) { # FIXME Test if Koha::Exceptions::Patron::Attribute::NonRepeatable warn "ERROR_extended_unique_id_failed $code $borrower{$code}"; -- 2.39.5