Bugzilla – Attachment 2360 Details for
Bug 4995
extended attributes replication from LDAP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix mapping of extended attribute code and ldap attributes
0001-Bug-4995-extended-attributes-replication-from-LDAP.patch (text/plain), 1.19 KB, created by
Dobrica Pavlinusic
on 2010-07-13 21:44:35 UTC
(
hide
)
Description:
fix mapping of extended attribute code and ldap attributes
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2010-07-13 21:44:35 UTC
Size:
1.19 KB
patch
obsolete
>From 30a003506eaa161fdcd2bfc01f65c5959f725185 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Tue, 13 Jul 2010 23:40:44 +0200 >Subject: [PATCH] Bug 4995 - extended attributes replication from LDAP > >--- > C4/Auth_with_ldap.pm | 5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) > >diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm >index b25697c..d3f8333 100644 >--- a/C4/Auth_with_ldap.pm >+++ b/C4/Auth_with_ldap.pm >@@ -164,9 +164,8 @@ sub checkpw_ldap { > } > if (C4::Context->preference('ExtendedPatronAttributes') && $borrowernumber && ($config{update} ||$config{replicate})) { > my @types = C4::Members::AttributeTypes::GetAttributeTypes(); >- my @attributes = grep{my $key=$_; any{$_ eq $key}@types;} keys %borrower; >- my $extended_patron_attributes = map{{code=>$_,value=>$borrower{$_}}}@attributes; >- my $extended_patron_attributes = [] unless $extended_patron_attributes; >+ my @attributes = grep{my $key=$_; any{$_->{code} eq $key}@types;} keys %borrower; >+ my $extended_patron_attributes = [ map{{code=>$_,value=>$borrower{$_}}}@attributes ]; > my @errors; > #Check before add > for (my $i; $i< scalar(@$extended_patron_attributes)-1;$i++) { >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4995
: 2360