Skip to content

Commit

Permalink
Fix automate_output_value() for tag control
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Oct 20, 2020
1 parent 5f5a6bb commit ef194a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/dialog_field_tag_control.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def values
end

def automate_output_value
MiqAeEngine.create_automation_attribute_array_value(Classification.where(:id => @value.to_s.split(",")))
MiqAeEngine.create_automation_attribute_array_value(Classification.where(:id => @value.kind_of?(String) ? @value.split(',') : @value))
end

def automate_key_name
Expand Down

0 comments on commit ef194a6

Please sign in to comment.