From 15a55d348338832f6245e2eec5dfdce1aac038a2 Mon Sep 17 00:00:00 2001
From: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Date: Mon, 20 Jan 2025 13:44:23 +0000
Subject: [PATCH] Bug 38669: (QA follow-up): Prevent multiple occurrences of
 'op' in the form

This may happen if getting to the ILL auto screen from the type disclaimer screen for example
Which causes the 'return to request'm form submission to have 2 'op's, causing error.
---
 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 35b5db4d412..680ccfe2e7e 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
@@ -1029,7 +1029,7 @@
                                 [% INCLUDE 'csrf-token.inc' %]
                                 [% FOREACH key IN whole.keys %]
                                     [% value = whole.$key %]
-                                    [% IF key != 'method' && key != 'custom_key' && key != 'custom_value' %]
+                                    [% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %]
                                         <input type="hidden" name="[% key | html %]" value="[% value | html %]">
                                     [% END %]
                                 [% END %]
-- 
2.39.5