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

(-)a/Koha/Club.pm (-12 lines)
Lines 39-56 Koha::Club - Koha Club Object class Link Here
39
39
40
=cut
40
=cut
41
41
42
=head3 club_template
43
44
=cut
45
46
sub club_template {
47
    my ($self) = @_;
48
49
    return unless $self->club_template_id();
50
51
    return Koha::Club::Templates->find( $self->club_template_id() );
52
}
53
54
=head3 club_fields
42
=head3 club_fields
55
43
56
=cut
44
=cut
(-)a/clubs/clubs.pl (-2 / +1 lines)
Lines 47-53 my $club_template = $club_template_id ? Koha::Club::Templates->find( $club_templ Link Here
47
my $club = $club_id ? Koha::Clubs->find( $club_id ) : undef;
47
my $club = $club_id ? Koha::Clubs->find( $club_id ) : undef;
48
48
49
my @club_templates = Koha::Club::Templates->search();
49
my @club_templates = Koha::Club::Templates->search();
50
my @clubs          = Koha::Clubs->search();
50
my @clubs          = Koha::Clubs->search({}, { prefetch => 'club_template' });
51
51
52
$template->param(
52
$template->param(
53
    stored         => $stored,
53
    stored         => $stored,
54
- 

Return to bug 18870