Lines 231-237
sub checkpw_ldap {
Link Here
|
231 |
return 0; # B2, D2 |
231 |
return 0; # B2, D2 |
232 |
} |
232 |
} |
233 |
if (C4::Context->preference('ExtendedPatronAttributes') && $borrowernumber && ($config{update} ||$config{replicate})) { |
233 |
if (C4::Context->preference('ExtendedPatronAttributes') && $borrowernumber && ($config{update} ||$config{replicate})) { |
234 |
my $attribute_types = Koha::Patron::Attribute::Types->filter_by_branch_limitations; |
234 |
my $library_id = C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef; |
|
|
235 |
my $attribute_types = Koha::Patron::Attribute::Types->search_with_library_limits({}, {}, $library_id); |
235 |
while ( my $attribute_type = $attribute_types->next ) { |
236 |
while ( my $attribute_type = $attribute_types->next ) { |
236 |
my $code = $attribute_type->code; |
237 |
my $code = $attribute_type->code; |
237 |
unless (exists($borrower{$code}) && $borrower{$code} !~ m/^\s*$/ ) { |
238 |
unless (exists($borrower{$code}) && $borrower{$code} !~ m/^\s*$/ ) { |
Lines 374-380
sub update_local {
Link Here
|
374 |
# skip extended patron attributes in 'borrowers' attribute update |
375 |
# skip extended patron attributes in 'borrowers' attribute update |
375 |
my @keys = keys %$borrower; |
376 |
my @keys = keys %$borrower; |
376 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
377 |
if (C4::Context->preference('ExtendedPatronAttributes')) { |
377 |
my $attribute_types = Koha::Patron::Attribute::Types->filter_by_branch_limitations; |
378 |
my $library_id = C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef; |
|
|
379 |
my $attribute_types = Koha::Patron::Attribute::Types->search_with_library_limits({}, {}, $library_id); |
378 |
while ( my $attribute_type = $attribute_types->next ) { |
380 |
while ( my $attribute_type = $attribute_types->next ) { |
379 |
my $code = $attribute_type->code; |
381 |
my $code = $attribute_type->code; |
380 |
@keys = grep { $_ ne $code } @keys; |
382 |
@keys = grep { $_ ne $code } @keys; |