Lines 86-98
my $action = $input->param('action');
Link Here
|
86 |
$action ||= q{}; |
86 |
$action ||= q{}; |
87 |
|
87 |
|
88 |
if ( $action eq 'move' ) { |
88 |
if ( $action eq 'move' ) { |
89 |
my $where = $input->param('where'); |
89 |
my $where = $input->param('where'); |
90 |
my $reserve_id = $input->param('reserve_id'); |
90 |
my $reserve_id = $input->param('reserve_id'); |
91 |
my $prev_priority = $input->param('prev_priority'); |
91 |
my $prev_priority = $input->param('prev_priority'); |
92 |
my $next_priority = $input->param('next_priority'); |
92 |
my $next_priority = $input->param('next_priority'); |
93 |
my $first_priority = $input->param('first_priority'); |
93 |
my $first_priority = $input->param('first_priority'); |
94 |
my $last_priority = $input->param('last_priority'); |
94 |
my $last_priority = $input->param('last_priority'); |
95 |
AlterPriority( $where, $reserve_id, $prev_priority, $next_priority, $first_priority, $last_priority ); |
95 |
my $hold_itemnumber = $input->param('itemnumber'); |
|
|
96 |
if ( $prev_priority == 0 && $next_priority == 1 ){ |
97 |
RevertWaitingStatus({ itemnumber => $hold_itemnumber }); |
98 |
} else { |
99 |
AlterPriority( $where, $reserve_id, $prev_priority, $next_priority, $first_priority, $last_priority ); |
100 |
} |
96 |
} elsif ( $action eq 'cancel' ) { |
101 |
} elsif ( $action eq 'cancel' ) { |
97 |
my $reserve_id = $input->param('reserve_id'); |
102 |
my $reserve_id = $input->param('reserve_id'); |
98 |
my $hold = Koha::Holds->find( $reserve_id ); |
103 |
my $hold = Koha::Holds->find( $reserve_id ); |
99 |
- |
|
|