View | Details | Raw Unified | Return to bug 21854
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-1 / +2 lines)
Lines 3-8 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% USE Categories %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
9
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
Lines 164-170 Link Here
164
                                                    <td>[% borrower.surname | html %]</td>
165
                                                    <td>[% borrower.surname | html %]</td>
165
                                                    <td>[% borrower.firstname | html %]</td>
166
                                                    <td>[% borrower.firstname | html %]</td>
166
                                                    <td>[% Branches.GetName( borrower.branchcode ) | html %]</td>
167
                                                    <td>[% Branches.GetName( borrower.branchcode ) | html %]</td>
167
                                                    <td>[% borrower.category_description | html %]</td>
168
                                                    <td>[% Categories.GetName(borrower.categorycode) | html %]</td>
168
                                                    <td>[% borrower.city | html %]</td>
169
                                                    <td>[% borrower.city | html %]</td>
169
                                                    <td>[% borrower.state | html %]</td>
170
                                                    <td>[% borrower.state | html %]</td>
170
                                                    <td>[% borrower.zipcode | html %]</td>
171
                                                    <td>[% borrower.zipcode | html %]</td>
(-)a/tools/modborrowers.pl (-4 lines)
Lines 336-344 if ( $op eq 'do' ) { Link Here
336
    for my $borrowernumber ( @borrowernumbers ) {
336
    for my $borrowernumber ( @borrowernumbers ) {
337
        my $patron = Koha::Patrons->find( $borrowernumber );
337
        my $patron = Koha::Patrons->find( $borrowernumber );
338
        if ( $patron ) {
338
        if ( $patron ) {
339
            my $category_description = $patron->category->description;
340
            $patron = $patron->unblessed;
339
            $patron = $patron->unblessed;
341
            $patron->{category_description} = $category_description;
342
            $patron->{patron_attributes} = C4::Members::Attributes::GetBorrowerAttributes( $patron->{borrowernumber} );
340
            $patron->{patron_attributes} = C4::Members::Attributes::GetBorrowerAttributes( $patron->{borrowernumber} );
343
            $max_nb_attr = scalar( @{ $patron->{patron_attributes} } )
341
            $max_nb_attr = scalar( @{ $patron->{patron_attributes} } )
344
                if scalar( @{ $patron->{patron_attributes} } ) > $max_nb_attr;
342
                if scalar( @{ $patron->{patron_attributes} } ) > $max_nb_attr;
Lines 360-366 if ( $op eq 'do' ) { Link Here
360
    $template->param( borrowers => \@borrowers );
358
    $template->param( borrowers => \@borrowers );
361
    $template->param( attributes_header => \@attributes_header );
359
    $template->param( attributes_header => \@attributes_header );
362
360
363
    $template->param( borrowers => \@borrowers );
364
    $template->param( errors => \@errors );
361
    $template->param( errors => \@errors );
365
} else {
362
} else {
366
363
367
- 

Return to bug 21854