Bugzilla – Attachment 116226 Details for
Bug 26636
Add objects.find Mojolicious helper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26636: (QA follow-up) Handle no results correctly
Bug-26636-QA-follow-up-Handle-no-results-correctly.patch (text/plain), 848 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2021-02-02 19:53:01 UTC
(
hide
)
Description:
Bug 26636: (QA follow-up) Handle no results correctly
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-02-02 19:53:01 UTC
Size:
848 bytes
patch
obsolete
>From 80bc15138071fb3ff155c8ca895ab189cd97ff69 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 2 Feb 2021 16:39:40 -0300 >Subject: [PATCH] Bug 26636: (QA follow-up) Handle no results correctly > >Sponsored-by: Virginia Tech Libraries > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/REST/Plugin/Objects.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm >index 5fc63030206..7ccc1c4cf49 100644 >--- a/Koha/REST/Plugin/Objects.pm >+++ b/Koha/REST/Plugin/Objects.pm >@@ -64,6 +64,8 @@ the requested object. It passes through any embeds if specified. > > my $object = $result_set->find( $id, $attributes ); > >+ return unless $object; >+ > return $object->to_api({ embed => $embed }); > } > ); >-- >2.30.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 26636
:
111418
|
111419
|
116222
|
116223
|
116224
|
116225
|
116226
|
116227
|
116228
|
116229
|
116230
|
116231
|
116594
|
116595
|
116596
|
116597
|
116598
|
117669
|
117670
|
117671
|
117672
|
117673
|
127528
|
127529
|
127530
|
127531
|
127532