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

(-)a/api/v1/swagger/definitions/patron_category.yaml (-2 / +2 lines)
Lines 57-64 properties: Link Here
57
    type: string
57
    type: string
58
    description: Type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff)
58
    description: Type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff)
59
  block_expired_patron_opac_actions:
59
  block_expired_patron_opac_actions:
60
    type: number
60
    type: string
61
    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
61
    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
62
  default_privacy:
62
  default_privacy:
63
    type: string
63
    type: string
64
    enum:
64
    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