From dacbad68bab21fddf64127525f2a92cd9477323c Mon Sep 17 00:00:00 2001
From: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Date: Thu, 16 Jan 2025 13:54:27 +0000
Subject: [PATCH] Bug 35604: (QA follow-up): Prevent more than one 'op' in form

This may happen if for example getting to the automatic backend screen from the ILL availability screen.
'op' is already being added, skip it if already exists in ported metadata

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 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 a15117771a8..5f28116b67b 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
@@ -866,7 +866,7 @@
                         <fieldset class="action">
                             [% 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.49.0