http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8919

Dobrica Pavlinusic <dpav...@rot13.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12814|0                           |1
        is obsolete|                            |

--- Comment #2 from Dobrica Pavlinusic <dpav...@rot13.org> ---
Created attachment 12848
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12848&action=edit
Bug 8919 - ExtendedPatronAttributes not populated from LDAP

Current code is overly complex and assumes that
C4::Members::AttributeTypes::GetAttributeTypes
returns array of attribute codes which is not true.

Instead it return array of hashes so none of extended attributes
will be replicated from LDAP.

This code correctly extracts extended attributes from borrower data
provides simpler code which fills same structure.

It also skips empty values (" ") which are result of mapping without
any default value. This is needed to make unique extended patron values
work. If not handled it would insert empty value for first user and
fail for all others on uniqueness constraint.

Test scenario:

1. define Patron attribute types in administration
2. define mapping from LDAP fields to attributes in koha-conf.xml
3. login as new user with LDAP fields and verify that extended
   attributes are replicated from LDAP

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to