From 645cae28b13eef60c2baacedb366d8aae2d9bdd8 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 21 Nov 2025 15:49:16 +0000 Subject: [PATCH] Bug 41281: Only skip metadata if empty or undefined 1) Enable ILLModule 2) Create an ILL request: /cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 3) Pick any type, add '42' for cardnumber and any library 4) Edit item metadata (assuming ID 1): /cgi-bin/koha/ill/ill-requests.pl?op=edititem&illrequest_id=1 5) Click 'Add new field' under 'Custom fields' 6) Add any value for 'key' e.g. "test" and '0' for value. 7) Click 'Update'. Notice the custom field doesn't show. 8) Apply patch. Refresh. Verify it shows now. --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index f579fe8aec8..3189db02885 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -751,7 +751,7 @@

Details from supplier ([% request.backend | html %])

    [% FOREACH meta IN request.metadata %] - [% IF meta.value %] + [% IF meta.value.defined && meta.value.length %]
  1. [% meta.key.replace('_',' ') | html %]: [% meta.value | html %] -- 2.39.5