Bugzilla – Attachment 178071 Details for
Bug 36081
ArticleRequestsSupportedFormats not enforced server-side
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36081: Force TestBuilder to generate a valid format value
Bug-36081-Force-TestBuilder-to-generate-a-valid-fo.patch (text/plain), 1.05 KB, created by
Marcel de Rooy
on 2025-02-14 07:32:17 UTC
(
hide
)
Description:
Bug 36081: Force TestBuilder to generate a valid format value
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-02-14 07:32:17 UTC
Size:
1.05 KB
patch
obsolete
>From e3d6c25d4259a8ac318b989d74d39803fb077968 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 31 Jan 2025 14:10:03 +0100 >Subject: [PATCH] Bug 36081: Force TestBuilder to generate a valid format value >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Magnus Enger <magnus@libriotech.no> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/lib/TestBuilder.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index bf48b718e6..b6ac549180 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -610,6 +610,12 @@ sub _gen_blob { > sub _gen_default_values { > my ($self) = @_; > return { >+ ArticleRequest => { >+ format => sub { >+ my $formats = C4::Context->multivalue_preference('ArticleRequestsSupportedFormats'); >+ return $formats->[ int( rand( scalar @$formats ) ) ]; >+ } >+ }, > AuthorisedValueCategory => { > is_integer_only => 0, > }, >-- >2.39.5
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 36081
:
162107
|
162113
|
177355
|
177356
|
177388
|
177389
|
177675
|
178020
|
178021
|
178022
|
178023
|
178024
|
178069
|
178070
| 178071 |
178072
|
178073
|
178074
|
178610
|
178611
|
178612
|
178613
|
178614
|
178615
|
181287