|
Lines 339-346
if ( $op eq 'do' ) {
Link Here
|
| 339 |
for my $borrowernumber ( @borrowernumbers ) { |
339 |
for my $borrowernumber ( @borrowernumbers ) { |
| 340 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
340 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
| 341 |
if ( $patron ) { |
341 |
if ( $patron ) { |
|
|
342 |
my $category_description = $patron->category->description; |
| 342 |
$patron = $patron->unblessed; |
343 |
$patron = $patron->unblessed; |
| 343 |
$patron->{category_description} = $patron->category->description; |
344 |
$patron->{category_description} = $category_description; |
| 344 |
$patron->{patron_attributes} = C4::Members::Attributes::GetBorrowerAttributes( $patron->{borrowernumber} ); |
345 |
$patron->{patron_attributes} = C4::Members::Attributes::GetBorrowerAttributes( $patron->{borrowernumber} ); |
| 345 |
$max_nb_attr = scalar( @{ $patron->{patron_attributes} } ) |
346 |
$max_nb_attr = scalar( @{ $patron->{patron_attributes} } ) |
| 346 |
if scalar( @{ $patron->{patron_attributes} } ) > $max_nb_attr; |
347 |
if scalar( @{ $patron->{patron_attributes} } ) > $max_nb_attr; |
| 347 |
- |
|
|