From 75434f8911e995382fd2b31ff08d6ecc4113c998 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 17 Dec 2025 11:53:10 +0000 Subject: [PATCH] Bug 41465: Fix display of 'type' for unauthenticated ILL request 'request' is unblessed in this context. get_type doesnt exist/work. Test plan: 1) Enable ILLModule and ILLOpacUnauthenticatedRequest 2) Logout, place an OPAC unauthenticated ILL request, visit: /cgi-bin/koha/opac-illrequests.pl?backend=Standard&op=add_form 3) Input all mandatory fields. Click 'Create'. 4) Notice 'Request type' shows as 'N/A'. This will always be the case regardless of type you pick. 5) Apply patch. Repeat. Notice 'Request type' now shows as expected. --- .../bootstrap/en/modules/opac-illrequests_unauthenticated.tt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests_unauthenticated.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests_unauthenticated.tt index c64381e703f..0a146987fd3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests_unauthenticated.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests_unauthenticated.tt @@ -49,7 +49,6 @@
Details from library
    - [% type = request.get_type %]
  1. [% request.illrequest_id | html %] @@ -68,7 +67,7 @@
  2. - [% IF type %][% type | html %][% ELSE %]N/A[% END %] + [% IF request.type %][% request.type | html %][% ELSE %]N/A[% END %]
  3. -- 2.39.5