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

(-)a/Koha/Objects/Limit/Library.pm (+1 lines)
Lines 71-76 sub search_with_library_limits { Link Here
71
        ]
71
        ]
72
    };
72
    };
73
73
74
    $params //= {};
74
    $attributes //= {};
75
    $attributes //= {};
75
    if ( exists $attributes->{join} ) {
76
    if ( exists $attributes->{join} ) {
76
        if ( ref $attributes->{join} eq 'ARRAY' ) {
77
        if ( ref $attributes->{join} eq 'ARRAY' ) {
(-)a/t/db_dependent/Koha/Patron/Attribute/Types.t (-2 / +5 lines)
Lines 388-394 subtest 'replace_library_limits() tests' => sub { Link Here
388
388
389
subtest 'search_with_library_limits() tests' => sub {
389
subtest 'search_with_library_limits() tests' => sub {
390
390
391
    plan tests => 5;
391
    plan tests => 6;
392
392
393
    $schema->storage->txn_begin;
393
    $schema->storage->txn_begin;
394
394
Lines 427-432 subtest 'search_with_library_limits() tests' => sub { Link Here
427
427
428
    is( $results->count, 3, '3 attribute types are available with no library passed' );
428
    is( $results->count, 3, '3 attribute types are available with no library passed' );
429
429
430
    $results = Koha::Patron::Attribute::Types->search_with_library_limits();
431
432
    is( $results->count, 3, 'No crash if no params passed' );
433
430
    $schema->storage->txn_rollback;
434
    $schema->storage->txn_rollback;
431
};
435
};
432
436
433
- 

Return to bug 23271