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

(-)a/admin/itemtypes.pl (-2 / +2 lines)
Lines 105-112 if ( $op eq 'add_form' ) { Link Here
105
    my $checkinmsgtype = $input->param('checkinmsgtype');
105
    my $checkinmsgtype = $input->param('checkinmsgtype');
106
    my $hideinopac     = $input->param('hideinopac') // 0;
106
    my $hideinopac     = $input->param('hideinopac') // 0;
107
    my $searchcategory = $input->param('searchcategory');
107
    my $searchcategory = $input->param('searchcategory');
108
    my $can_suspend_hold = $input->param('can_suspend_hold');
108
    my $can_suspend_hold = $input->param('can_suspend_hold') // 0;
109
    my $can_cancel_hold  = $input->param('can_cancel_hold');
109
    my $can_cancel_hold  = $input->param('can_cancel_hold') // 0;
110
110
111
    if ( $itemtype and $is_a_modif ) {    # it's a modification
111
    if ( $itemtype and $is_a_modif ) {    # it's a modification
112
        $itemtype->description($description);
112
        $itemtype->description($description);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc (-2 / +1 lines)
Lines 183-189 Link Here
183
                        [% END # / IF SuspendHoldsOpac %]
183
                        [% END # / IF SuspendHoldsOpac %]
184
                        [% IF ! onlyinfo %]
184
                        [% IF ! onlyinfo %]
185
                            <td class="modify">
185
                            <td class="modify">
186
                                [% IF ( HOLD.is_cancelable_from_opac ) %]
186
                                [% IF ( HOLD.is_cancelable_from_opac && ItemTypes.CanCancelHold( HOLD.biblio.biblioitem.itemtype )) %]
187
                                    <form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post">
187
                                    <form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post">
188
                                    <input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" />
188
                                    <input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" />
189
                                    <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" />
189
                                    <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" />
190
- 

Return to bug 22833