File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 28
28
= h(field.values.detect { |k, _v| k == wf.value(field.name) }.try(:last) || wf.value(field.name))
29
29
30
30
- when " DialogFieldDropDownList"
31
- - if field.value.instance_of?(Array)
32
- = h(field.value.blank? ? _(" <None>" ) : h(field.value.join(" , " )))
33
- - else
34
- = h(field.value.blank? ? _(" <None>" ) : h(field.value))
31
+ = h(field.value.blank? ? _(" <None>" ) : field.value.to_s.gsub(" \x1F " , " , " ))
35
32
36
33
- when 'DialogFieldTagControl'
37
- - value = wf.value(field.name) || ''
38
- - classifications = Classification.where(:id => value).pluck(:description)
34
+ - value = wf.value(field.name) || '' # it returns in format Clasification::id
35
+ - classifications = value.split(',').map do |c|
36
+ - classification = Classification.find_by(id: c.split('::').second)
37
+ - classification.description if classification
39
38
- if classifications.empty?
40
39
= h('')
41
40
-else
You can’t perform that action at this time.
0 commit comments