Bugzilla – Attachment 178022 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), 979 bytes, created by
Magnus Enger
on 2025-02-13 15:25:38 UTC
(
hide
)
Description:
Bug 36081: Force TestBuilder to generate a valid format value
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2025-02-13 15:25:38 UTC
Size:
979 bytes
patch
obsolete
>From 0a87fd296455ee40400c9063865d77a049a707a0 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 > >Signed-off-by: Magnus Enger <magnus@libriotech.no> >--- > 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.34.1
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