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

(-)a/Koha/REST/V1/ERM/Agreements.pm (-1 lines)
Lines 185-191 sub update { Link Here
185
                    map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes};
185
                    map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes};
186
                $agreement->extended_attributes( \@extended_attributes );
186
                $agreement->extended_attributes( \@extended_attributes );
187
187
188
                $c->res->headers->location( $c->req->url->to_string . '/' . $agreement->agreement_id );
189
                return $c->render(
188
                return $c->render(
190
                    status  => 200,
189
                    status  => 200,
191
                    openapi => $c->objects->to_api($agreement),
190
                    openapi => $c->objects->to_api($agreement),
(-)a/Koha/REST/V1/ERM/EHoldings/Packages/Local.pm (-1 lines)
Lines 164-170 sub update { Link Here
164
                    map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes};
164
                    map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes};
165
                $package->extended_attributes( \@extended_attributes );
165
                $package->extended_attributes( \@extended_attributes );
166
166
167
                $c->res->headers->location( $c->req->url->to_string . '/' . $package->package_id );
168
                return $c->render(
167
                return $c->render(
169
                    status  => 200,
168
                    status  => 200,
170
                    openapi => $c->objects->to_api($package),
169
                    openapi => $c->objects->to_api($package),
(-)a/Koha/REST/V1/ERM/EHoldings/Titles/Local.pm (-1 lines)
Lines 157-163 sub update { Link Here
157
157
158
                $title->resources($resources);
158
                $title->resources($resources);
159
159
160
                $c->res->headers->location( $c->req->url->to_string . '/' . $title->title_id );
161
                return $c->render(
160
                return $c->render(
162
                    status  => 200,
161
                    status  => 200,
163
                    openapi => $c->objects->to_api($title),
162
                    openapi => $c->objects->to_api($title),
(-)a/Koha/REST/V1/ERM/Licenses.pm (-2 lines)
Lines 166-172 sub update { Link Here
166
                    map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes};
166
                    map { { 'id' => $_->{field_id}, 'value' => $_->{value} } } @{$extended_attributes};
167
                $license->extended_attributes( \@extended_attributes );
167
                $license->extended_attributes( \@extended_attributes );
168
168
169
                $c->res->headers->location( $c->req->url->to_string . '/' . $license->license_id );
170
                return $c->render(
169
                return $c->render(
171
                    status  => 200,
170
                    status  => 200,
172
                    openapi => $c->objects->to_api($license),
171
                    openapi => $c->objects->to_api($license),
173
- 

Return to bug 37622