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

(-)a/Koha/Object.pm (-2 / +2 lines)
Lines 505-511 sub to_api { Link Here
505
                and $embeds->{$embed}->{is_count} ) {
505
                and $embeds->{$embed}->{is_count} ) {
506
506
507
                my $relation = $+{relation};
507
                my $relation = $+{relation};
508
                $json_object->{$embed} = $self->$relation->count;
508
                $json_object->{$embed} =
509
                  ( defined $self->$relation ) ? $self->$relation->count : 0;
509
            }
510
            }
510
            else {
511
            else {
511
                my $curr = $embed;
512
                my $curr = $embed;
512
- 

Return to bug 24965