Lines 52-62
sub cancel {
Link Here
|
52 |
} |
52 |
} |
53 |
|
53 |
|
54 |
my $reason = $c->validation->param('cancellation_reason'); |
54 |
my $reason = $c->validation->param('cancellation_reason'); |
55 |
my $notes = $c->validation->param('notes'); |
55 |
my $notes = $c->validation->param('notes'); |
56 |
|
56 |
|
57 |
return try { |
57 |
return try { |
58 |
|
58 |
|
59 |
$article_request->cancel($reason, $notes); |
59 |
$article_request->cancel( |
|
|
60 |
{ |
61 |
cancellation_reason => $reason, |
62 |
notes => $notes |
63 |
} |
64 |
); |
60 |
return $c->render( |
65 |
return $c->render( |
61 |
status => 204, |
66 |
status => 204, |
62 |
openapi => q{} |
67 |
openapi => q{} |
Lines 96-106
sub patron_cancel {
Link Here
|
96 |
} |
101 |
} |
97 |
|
102 |
|
98 |
my $reason = $c->validation->param('cancellation_reason'); |
103 |
my $reason = $c->validation->param('cancellation_reason'); |
99 |
my $notes = $c->validation->param('notes'); |
104 |
my $notes = $c->validation->param('notes'); |
100 |
|
105 |
|
101 |
return try { |
106 |
return try { |
102 |
|
107 |
|
103 |
$article_request->cancel( $reason, $notes ); |
108 |
$article_request->cancel( |
|
|
109 |
{ |
110 |
cancellation_reason => $reason, |
111 |
notes => $notes |
112 |
} |
113 |
); |
104 |
return $c->render( |
114 |
return $c->render( |
105 |
status => 204, |
115 |
status => 204, |
106 |
openapi => q{} |
116 |
openapi => q{} |