Lines 41-46
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
41 |
|
41 |
|
42 |
my $reserve_id = $query->param('reserve_id'); |
42 |
my $reserve_id = $query->param('reserve_id'); |
43 |
my $cancellation_request = $query->param('cancellation_request'); |
43 |
my $cancellation_request = $query->param('cancellation_request'); |
|
|
44 |
my $new_pickup_location = $query->param('new_pickup_location'); |
44 |
|
45 |
|
45 |
if ( $reserve_id && $borrowernumber ) { |
46 |
if ( $reserve_id && $borrowernumber ) { |
46 |
|
47 |
|
Lines 61-66
if ( $reserve_id && $borrowernumber ) {
Link Here
|
61 |
$hold->cancel |
62 |
$hold->cancel |
62 |
if $hold->is_cancelable_from_opac; |
63 |
if $hold->is_cancelable_from_opac; |
63 |
} |
64 |
} |
|
|
65 |
|
66 |
if ( $new_pickup_location ) { |
67 |
|
68 |
if ( C4::Context->preference('OPACInTransitHoldPickupLocationChange') ) { |
69 |
$hold->set_pickup_location({ library_id => $new_pickup_location }); |
70 |
} |
71 |
else { |
72 |
# whatcha tryin to do? |
73 |
print $query->redirect('/cgi-bin/koha/errors/403.pl'); |
74 |
exit; |
75 |
} |
76 |
} |
64 |
} |
77 |
} |
65 |
|
78 |
|
66 |
print $query->redirect("/cgi-bin/koha/opac-user.pl#opac-user-holds"); |
79 |
print $query->redirect("/cgi-bin/koha/opac-user.pl#opac-user-holds"); |
67 |
- |
|
|