Skip to content

Commit 1ce6d90

Browse files
authored
Merge pull request #9377 from kbrock/workflow_dialog_fields
Handle customization for all provisions
2 parents acfbf42 + 85b44bd commit 1ce6d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller/miq_request_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def prov_field_changed
3838

3939
all_dialogs = @edit[:wf].get_all_dialogs rescue []
4040

41-
if @edit[:new] && @edit[:new][:addr_mode] && @edit[:new][:addr_mode][0] == "dhcp" && all_dialogs[:customize]
41+
if @edit[:new] && @edit[:new][:addr_mode] && @edit[:new][:addr_mode][0] == "dhcp" && all_dialogs[:customize] && all_dialogs[:customize][:fields]
4242
all_dialogs[:customize][:fields][:hostname]&.[]=(:read_only, true)
4343
all_dialogs[:customize][:fields][:linux_host_name]&.[]=(:read_only, true)
4444
all_dialogs[:customize][:fields][:subnet_mask][:read_only] = true

0 commit comments

Comments
 (0)