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

(-)a/Koha/Patron.pm (+6 lines)
Lines 48-53 Koha::Patron - Koha Patron Object class Link Here
48
48
49
=cut
49
=cut
50
50
51
sub category {
52
    my ( $self ) = @_;
53
    my $category = $self->_result->categorycode;
54
    return Koha::Patron::Category->_new_from_dbic( $category );
55
}
56
51
=head3 delete
57
=head3 delete
52
58
53
$patron->delete
59
$patron->delete
(-)a/misc/search_tools/reindex_patrons.pl (-1 / +1 lines)
Lines 17-22 while ( my $patron = $patrons->next ) { Link Here
17
    my $id = $patron->borrowernumber;
17
    my $id = $patron->borrowernumber;
18
    my $record = $patron->unblessed;
18
    my $record = $patron->unblessed;
19
    $record->{_id} = $id;
19
    $record->{_id} = $id;
20
    $record->{category_type} = $patron->category->category_type;
20
    push @id_buffer, $id;
21
    push @id_buffer, $id;
21
    push @commit_buffer, $record;
22
    push @commit_buffer, $record;
22
}
23
}
23
- 

Return to bug 17500