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

(-)a/admin/itemtypes.pl (-5 / +2 lines)
Lines 99-105 if ( $op eq 'add_form' ) { Link Here
99
    my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0;
99
    my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0;
100
    my $automatic_checkin            = $input->param('automatic_checkin')            // 0;
100
    my $automatic_checkin            = $input->param('automatic_checkin')            // 0;
101
    my $bookable                     = $input->param('bookable')                     // 0;
101
    my $bookable                     = $input->param('bookable')                     // 0;
102
    my $checkprevcheckout            = $input->param('checkprevcheckout');
102
    my $checkprevcheckout            = $input->param('checkprevcheckout')            // 'inherit';
103
103
104
    if ( $itemtype and $is_a_modif ) {    # it's a modification
104
    if ( $itemtype and $is_a_modif ) {    # it's a modification
105
        $itemtype->description($description);
105
        $itemtype->description($description);
Lines 121-130 if ( $op eq 'add_form' ) { Link Here
121
        $itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar);
121
        $itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar);
122
        $itemtype->automatic_checkin($automatic_checkin);
122
        $itemtype->automatic_checkin($automatic_checkin);
123
        $itemtype->bookable($bookable);
123
        $itemtype->bookable($bookable);
124
124
        $itemtype->checkprevcheckout($checkprevcheckout);
125
        if ( defined $checkprevcheckout ) {
126
            $itemtype->checkprevcheckout($checkprevcheckout);
127
        }
128
125
129
        eval {
126
        eval {
130
            $itemtype->store;
127
            $itemtype->store;
(-)a/api/v1/swagger/definitions/item_type.yaml (-2 / +1 lines)
Lines 99-105 properties: Link Here
99
      - yes
99
      - yes
100
      - no
100
      - no
101
      - inherit
101
      - inherit
102
    description: Produce a warning for this item type if this item has previously been checked out to this patron if ''yes'', not if ''no'', defer to syspref setting if ''inherit''.'
102
    description: Produce a warning for this item type if this item has previously been checked out to this patron if ''yes'', not if ''no'', defer to patron setting if ''inherit''
103
103
104
additionalProperties: false
104
additionalProperties: false
105
required:
105
required:
106
- 

Return to bug 20644