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

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

Return to bug 24965