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

(-)a/Koha/REST/V1/TransferLimits.pm (-2 / +1 lines)
Lines 143-149 sub batch_add { Link Here
143
143
144
        my $dbic_params = Koha::Item::Transfer::Limits->new->attributes_from_api($params);
144
        my $dbic_params = Koha::Item::Transfer::Limits->new->attributes_from_api($params);
145
        my %existing_limits =
145
        my %existing_limits =
146
            map { sprintf( "%s:%s:%s:%s", $_->fromBranch, $_->toBranch, $_->itemtype, $_->ccode ) => 1 }
146
            map { sprintf( "%s:%s:%s:%s", $_->fromBranch, $_->toBranch, $_->itemtype // q{}, $_->ccode // q{} ) => 1 }
147
            Koha::Item::Transfer::Limits->search($dbic_params)->as_list;
147
            Koha::Item::Transfer::Limits->search($dbic_params)->as_list;
148
148
149
        my @results;
149
        my @results;
150
- 

Return to bug 36277