diff --git a/app/views/miq_request/_request_dialog_details.html.haml b/app/views/miq_request/_request_dialog_details.html.haml index 96700c4df43..8f53976777a 100644 --- a/app/views/miq_request/_request_dialog_details.html.haml +++ b/app/views/miq_request/_request_dialog_details.html.haml @@ -28,14 +28,13 @@ = h(field.values.detect { |k, _v| k == wf.value(field.name) }.try(:last) || wf.value(field.name)) - when "DialogFieldDropDownList" - - if field.value.instance_of?(Array) - = h(field.value.blank? ? _("") : h(field.value.join(", "))) - - else - = h(field.value.blank? ? _("") : h(field.value)) + = h(field.value.blank? ? _("") : field.value.to_s.gsub("\x1F", ", ")) - when 'DialogFieldTagControl' - - value = wf.value(field.name) || '' - - classifications = Classification.where(:id => value).pluck(:description) + - value = wf.value(field.name) || '' # it returns in format Clasification::id + - classifications = value.split(',').map do |c| + - classification = Classification.find_by(id: c.split('::').second) + - classification.description if classification - if classifications.empty? = h('') -else