Problem:
When provisioning a new host, if you override more than one parameter, the previous parameter that you override clears the “Name” and “Value” fields
Expected outcome:
Previous version brought down all fields no matter how many parameters were chosen.
Foreman and Proxy versions:
Foreman 3.0.1-1
Katello 4.2.1 Foreman and Proxy plugin versions:
foreman-tasks 5.1.1
foreman_chef 0.10.0
foreman_discovery 18.0.5
foreman_docker 5.0.0
foreman_puppet 1.0.5
foreman_remote_execution 4.8.0
katello 4.2.1 Distribution and version:
CentOS Linux release 7.9.2009 (Core) Other relevant data:
I also see this in /var/lib/foreman/public/assets/
parameter_override-dc08f9cc7cfa8b58a45c3ef5ac16cfaed80b2f07cc21afa7ac7595aa42cad173.js
parameter_override-dc08f9cc7cfa8b58a45c3ef5ac16cfaed80b2f07cc21afa7ac7595aa42cad173.js.gz
So, is the gz file what you mean by minified?
The format of the .js is not quite what I saw in the fix. It’s a single line:
function override_param(a){var e=$(a).closest("tr").addClass("override-param"),d=e.find("[id^=name_]").text(),i=e.find("[id^=parameter_type_]").text(),r=e.find("[id^=value_]"),n=r.val();$("#parameters").find(".btn-primary").click();var t=$("#parameters").find(".fields").last();if(t.find("[id$=_name]").val(d),t.find("[id$=_parameter_type]").val(i),t.find("[id$=_value]").val(n==r.data("hidden-value")?"":n),r.hasClass("masked-input")){var l=t.find("span.fa-eye-slash").closest("a"),s=t.find(".set_hidden_value");s.prop("checked",!0),s.val("1"),l.click()}}