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

(-)a/reserve/request.pl (-1 / +15 lines)
Lines 44-49 use C4::Search qw( enabled_staff_search_views ); Link Here
44
use Koha::Biblios;
44
use Koha::Biblios;
45
use Koha::Checkouts;
45
use Koha::Checkouts;
46
use Koha::Holds;
46
use Koha::Holds;
47
use Koha::Hold;
47
use Koha::CirculationRules;
48
use Koha::CirculationRules;
48
use Koha::Items;
49
use Koha::Items;
49
use Koha::ItemTypes;
50
use Koha::ItemTypes;
Lines 109-114 if ( $op eq 'cud-move' ) { Link Here
109
            $next_priority, $first_priority, $last_priority
110
            $next_priority, $first_priority, $last_priority
110
        );
111
        );
111
    }
112
    }
113
} elsif ( $op eq 'cud-move_hold_item' ) {
114
    my $new_itemnumber   = $input->param('new_itemnumber');
115
    my $new_biblionumber = $input->param('new_biblionumber');
116
    my @hold_ids         = $input->multi_param('hold_id');
117
    foreach my $hold_id (@hold_ids) {
118
        my $hold = Koha::Holds->find($hold_id);
119
        $hold->move_hold_item(
120
            {
121
                new_itemnumber   => $new_itemnumber,
122
                new_biblionumber => $new_biblionumber,
123
            }
124
        );
125
    }
126
112
} elsif ( $op eq 'cud-cancel' ) {
127
} elsif ( $op eq 'cud-cancel' ) {
113
    my $reserve_id          = $input->param('reserve_id');
128
    my $reserve_id          = $input->param('reserve_id');
114
    my $cancellation_reason = $input->param("cancellation-reason");
129
    my $cancellation_reason = $input->param("cancellation-reason");
115
- 

Return to bug 31698