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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +2 lines)
Lines 1866-1873 Link Here
1866
                return false;
1866
                return false;
1867
            });
1867
            });
1868
1868
1869
            [% IF (!is_super_librarian) %]
1869
            [% IF (!CAN_user_superlibrarian) %]
1870
                var user_branch = "[% user_branch %]";
1870
                var user_branch = "[% Branches.GetLoggedInBranchcode %]";
1871
                if(user_branch !== undefined && user_branch !== ""){
1871
                if(user_branch !== undefined && user_branch !== ""){
1872
                    $('#patron_holds_table tbody tr').each(function() {
1872
                    $('#patron_holds_table tbody tr').each(function() {
1873
                        var link = $(this).find('a[href*="member"]');
1873
                        var link = $(this).find('a[href*="member"]');
(-)a/reserve/request.pl (-5 / +4 lines)
Lines 121-130 if ( $op eq 'cud-move' ) { Link Here
121
    }
121
    }
122
}
122
}
123
elsif ( $op eq 'cud-cancel' ) {
123
elsif ( $op eq 'cud-cancel' ) {
124
        my $reserve_id          = $input->param('reserve_id');
124
    my $reserve_id          = $input->param('reserve_id');
125
        my $cancellation_reason = $input->param("cancellation-reason");
125
    my $cancellation_reason = $input->param("cancellation-reason");
126
        my $hold                = Koha::Holds->find($reserve_id);
126
    my $hold                = Koha::Holds->find($reserve_id);
127
        $hold->cancel( { cancellation_reason => $cancellation_reason } ) if $hold;
127
    $hold->cancel( { cancellation_reason => $cancellation_reason } ) if $hold;
128
}
128
}
129
elsif ( $op eq 'cud-setLowestPriority' ) {
129
elsif ( $op eq 'cud-setLowestPriority' ) {
130
    my $reserve_id = $input->param('reserve_id');
130
    my $reserve_id = $input->param('reserve_id');
131
- 

Return to bug 38040