Skip to content

Commit

Permalink
Add dialog field description to list of values able to be updated thr…
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Sep 21, 2017
1 parent a215bb7 commit 5761f57
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/models/dialog_field_check_box.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DialogFieldCheckBox < DialogField
AUTOMATE_VALUE_FIELDS = %w(required read_only visible).freeze
AUTOMATE_VALUE_FIELDS = %w(required read_only visible description).freeze

def checked?
value == "t"
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_date_control.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DialogFieldDateControl < DialogField
AUTOMATE_VALUE_FIELDS = %w(show_past_dates read_only visible).freeze
AUTOMATE_VALUE_FIELDS = %w(show_past_dates read_only visible description).freeze

include TimezoneMixin

Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_date_time_control.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DialogFieldDateTimeControl < DialogFieldDateControl
AUTOMATE_VALUE_FIELDS = %w(show_past_dates read_only visible).freeze
AUTOMATE_VALUE_FIELDS = %w(show_past_dates read_only visible description).freeze

def automate_output_value
return nil if @value.blank?
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_sorted_item.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DialogFieldSortedItem < DialogField
AUTOMATE_VALUE_FIELDS = %w(sort_by sort_order data_type default_value required read_only visible).freeze
AUTOMATE_VALUE_FIELDS = %w(sort_by sort_order data_type default_value required read_only visible description).freeze

def initialize_with_values(dialog_values)
if load_values_on_init?
Expand Down
2 changes: 1 addition & 1 deletion app/models/dialog_field_text_area_box.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class DialogFieldTextAreaBox < DialogFieldTextBox
AUTOMATE_VALUE_FIELDS = %w(required read_only visible).freeze
AUTOMATE_VALUE_FIELDS = %w(required read_only visible description).freeze
end
2 changes: 1 addition & 1 deletion app/models/dialog_field_text_box.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DialogFieldTextBox < DialogField
AUTOMATE_VALUE_FIELDS = %w(data_type protected required validator_rule validator_type read_only visible).freeze
AUTOMATE_VALUE_FIELDS = %w(data_type protected required validator_rule validator_type read_only visible description).freeze

def value
@value = values_from_automate if dynamic && @value.blank?
Expand Down

0 comments on commit 5761f57

Please sign in to comment.