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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-3 / +6 lines)
Lines 705-711 Link Here
705
                                                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
705
                                                        [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
706
                                                        [% IF hold_cancellation.count %]
706
                                                        [% IF hold_cancellation.count %]
707
                                                            <select name="cancellation-reason" id="cancellation-reason">
707
                                                            <select name="cancellation-reason" id="cancellation-reason">
708
                                                                <option value="NULL">No reason given</option>
708
                                                                <option value="">No reason given</option>
709
                                                                [% FOREACH reason IN hold_cancellation %]
709
                                                                [% FOREACH reason IN hold_cancellation %]
710
                                                                    <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
710
                                                                    <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
711
                                                                [% END %]
711
                                                                [% END %]
Lines 1562-1568 Link Here
1562
                this.form.submit();
1562
                this.form.submit();
1563
            });
1563
            });
1564
            $('.cancel-hold').on("click",function(e){
1564
            $('.cancel-hold').on("click",function(e){
1565
                let cancel_reason = document.getElementById('cancellation-reason').value;
1565
                let cancel_form = document.getElementById('cancellation-reason');
1566
                let cancel_reason = '';
1567
                if ( cancel_form ) {
1568
                    cancel_reason = cancel_form.value;
1569
                }
1566
                this.form.cancel_reserve.value = 1;
1570
                this.form.cancel_reserve.value = 1;
1567
                this.form.cancel_reason.value = cancel_reason;
1571
                this.form.cancel_reason.value = cancel_reason;
1568
                this.form.submit();
1572
                this.form.submit();
1569
- 

Return to bug 35535