|
Lines 195-205
sub update {
Link Here
|
| 195 |
$agreement->agreement_relationships($agreement_relationships); |
195 |
$agreement->agreement_relationships($agreement_relationships); |
| 196 |
$agreement->documents($documents); |
196 |
$agreement->documents($documents); |
| 197 |
|
197 |
|
| 198 |
my @extended_attributes = |
|
|
| 199 |
map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes}; |
| 200 |
$agreement->extended_attributes( \@extended_attributes ); |
| 201 |
|
| 202 |
$c->res->headers->location($c->req->url->to_string . '/' . $agreement->agreement_id); |
| 203 |
return $c->render( |
198 |
return $c->render( |
| 204 |
status => 200, |
199 |
status => 200, |
| 205 |
openapi => $c->objects->to_api($agreement), |
200 |
openapi => $c->objects->to_api($agreement), |