Bugzilla – Attachment 148386 Details for
Bug 32713
x-koha-embed appears to no longer properly validate
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32713: (QA follow-up) Tests now require more complex structures
Bug-32713-QA-follow-up-Tests-now-require-more-comp.patch (text/plain), 1.41 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-03-17 21:28:09 UTC
(
hide
)
Description:
Bug 32713: (QA follow-up) Tests now require more complex structures
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-03-17 21:28:09 UTC
Size:
1.41 KB
patch
obsolete
>From afdc1690e01daef72e6e2304bcdf7dec18fe653c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 17 Mar 2023 18:27:09 -0300 >Subject: [PATCH] Bug 32713: (QA follow-up) Tests now require more complex > structures > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/REST/Plugin/Objects.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/REST/Plugin/Objects.t b/t/db_dependent/Koha/REST/Plugin/Objects.t >index 478647a8574..15076e1897b 100755 >--- a/t/db_dependent/Koha/REST/Plugin/Objects.t >+++ b/t/db_dependent/Koha/REST/Plugin/Objects.t >@@ -38,7 +38,7 @@ plugin 'Koha::REST::Plugin::Pagination'; > get '/cities' => sub { > my $c = shift; > $c->validation->output($c->req->params->to_hash); >- $c->stash_embed; >+ $c->stash_embed( { spec => { parameters => [ { name => 'x-koha-embed', items => { enum => ['+strings'] } } ] } } ); > my $cities = $c->objects->search(Koha::Cities->new); > $c->render( status => 200, json => $cities ); > }; >@@ -55,7 +55,7 @@ get '/cities/rs' => sub { > get '/cities/:city_id' => sub { > my $c = shift; > my $id = $c->stash("city_id"); >- $c->stash_embed; >+ $c->stash_embed( { spec => { parameters => [ { name => 'x-koha-embed', items => { enum => ['+strings'] } } ] } } ); > my $city = $c->objects->find(Koha::Cities->new, $id); > $c->render( status => 200, json => $city ); > }; >-- >2.40.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32713
:
147586
|
147587
|
147820
|
147821
|
148289
|
148290
| 148386