Bug 26636: (QA follow-up) Handle no results correctly
Sponsored-by: Virginia Polytechnic Institute and State University Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
653fe39625
commit
4a65fe61f4
1 changed files with 2 additions and 0 deletions
|
@ -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 });
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue