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

(-)a/api/v1/swagger/definitions/patron_category.yaml (-2 / +2 lines)
Lines 58-65 properties: Link Here
58
    type: string
58
    type: string
59
    description: Type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff)
59
    description: Type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff)
60
  block_expired_patron_opac_actions:
60
  block_expired_patron_opac_actions:
61
    type: number
61
    type: string
62
    description: Whether or not a patron of this category can renew books or place holds once their card has expired. 0 means they can, 1 means they cannot, -1 means use syspref BlockExpiredPatronOpacActions
62
    description: Specific actions expired patrons of this category are blocked from performing. OPAC actions blocked based on the patron category take priority over this preference
63
  default_privacy:
63
  default_privacy:
64
    type: string
64
    type: string
65
    enum:
65
    enum:
(-)a/t/db_dependent/api/v1/patron_categories.t (-2 / +1 lines)
Lines 98-104 subtest 'list() tests' => sub { Link Here
98
    $off_limits_librarian->branchcode( $library->branchcode )->store;
98
    $off_limits_librarian->branchcode( $library->branchcode )->store;
99
99
100
    $t->get_ok("//$off_limits_userid:$off_limits_password@/api/v1/patron_categories?q={\"me.categorycode\":\"TEST\"}")
100
    $t->get_ok("//$off_limits_userid:$off_limits_password@/api/v1/patron_categories?q={\"me.categorycode\":\"TEST\"}")
101
        ->status_is(200)->json_has('/0/name')->json_is( '/0/name' => 'Test' )->json_hasnt('/1');
101
        ->status_is(200)->json_has('/0/name')->json_is( [ $category->to_api ] )->json_hasnt('/1');
102
102
103
    $schema->storage->txn_rollback;
103
    $schema->storage->txn_rollback;
104
104
105
- 

Return to bug 36453