Bugzilla – Attachment 155353 Details for
Bug 34339
$c->validation should be avoided (part 2)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34339: (QA follow-up) Replace new by search in Licenses
Bug-34339-QA-follow-up-Replace-new-by-search-in-Li.patch (text/plain), 965 bytes, created by
Marcel de Rooy
on 2023-09-08 06:19:59 UTC
(
hide
)
Description:
Bug 34339: (QA follow-up) Replace new by search in Licenses
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-09-08 06:19:59 UTC
Size:
965 bytes
patch
obsolete
>From 0791c4f0254354401f5afd0103cfb1b0c5859237 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 8 Sep 2023 06:16:44 +0000 >Subject: [PATCH] Bug 34339: (QA follow-up) Replace new by search in Licenses >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/REST/V1/ERM/Licenses.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/REST/V1/ERM/Licenses.pm b/Koha/REST/V1/ERM/Licenses.pm >index 9408dfecae..616c10331c 100644 >--- a/Koha/REST/V1/ERM/Licenses.pm >+++ b/Koha/REST/V1/ERM/Licenses.pm >@@ -55,7 +55,7 @@ sub get { > my $c = shift->openapi->valid_input or return; > > return try { >- my $license = $c->objects->find( Koha::ERM::Licenses->new, $c->param('license_id') ); >+ my $license = $c->objects->find( Koha::ERM::Licenses->search, $c->param('license_id') ); > > unless ($license) { > return $c->render( >-- >2.30.2
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 34339
:
153786
|
153796
|
155340
|
155341
|
155351
|
155352
| 155353