From f8f29e8424cfce157e9129b5dbb38826f6f61116 Mon Sep 17 00:00:00 2001 From: Erik Clarizio Date: Mon, 14 Aug 2017 11:05:36 -0700 Subject: [PATCH] Ensure dialog is set before calling `.value` https://bugzilla.redhat.com/show_bug.cgi?id=1481380 --- app/models/dialog.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/dialog.rb b/app/models/dialog.rb index 1450c1f8229..c02d8105910 100644 --- a/app/models/dialog.rb +++ b/app/models/dialog.rb @@ -89,8 +89,8 @@ def validate_field_data def init_fields_with_values(values) dialog_field_hash.each do |key, field| - values[key] = field.value field.dialog = self + values[key] = field.value end dialog_field_hash.each { |key, field| values[key] = field.initialize_with_values(values) } dialog_field_hash.each { |_key, field| field.update_values(values) }