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.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2025-01-20 13:44:23 +00:00 committed by Katrin Fischer
parent ff4bdb1ef5
commit 346bef792e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -866,7 +866,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 %]