Skip to content

Commit f6d6f2a

Browse files
committed
Fix src_configuration_script_id name not matching id
1 parent eaa1a23 commit f6d6f2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/application_controller/miq_request_methods.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,9 @@ def prov_get_form_vars
833833
@edit[:new][f.to_sym] = [val, v.name] # Save [value, description]
834834
end
835835
elsif evm_object_class == :ConfigurationScriptBase
836-
@edit[:new][f.to_sym] = [val, v.name] # Save [value, name]
836+
if v.id.to_i == val.id.to_i
837+
@edit[:new][f.to_sym] = [val, v.name] # Save [value, name]
838+
end
837839
elsif v[1].to_i == val.to_i
838840
@edit[:new][f.to_sym] = [val, v[0]] # Save [value, description]
839841
end

0 commit comments

Comments
 (0)