Description of problem:
Add input is automatically using Resource type also when value type is Plain, this is happening only when in previous input value type was set to search.
Version-Release number of selected component (if applicable):
sat 6.6 snap 16
Steps to Reproduce:
1. monitor -> report template -> create report template
2. inputs (tab) -> value type == Search
3. Add another input (button Add input) and there is automatically Value type Plain together with Resource Type - Activation Keys (which is wrong)
For Value type == Plain there should be field Options and not Resource Type.
Actual result: When user add another input, right after previous input where value type was equal to Search, then for Value type Plain there is still field Resource type.
Expected result: When user add another input, right after previous input where value type was equal to Search, then Value type Plain should display field with name Options instead of Resource type.
It's connected to Bug 1728676
This is even more annoying than described - the Resource Type fields show/hide all together while creating template depending on the last choice.
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27662 has been resolved.
Verified with Sat 6.6 snap 22.
Used reproducer from OP. Creating and editing report templates, even with multiple inputs, now works as expected.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.