Skip to content

Commit

Permalink
Fix request page tag value
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertCherrie committed Aug 23, 2024
1 parent 7fcec09 commit 45929f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/miq_request/_request_dialog_details.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@

- when 'DialogFieldTagControl'
- value = wf.value(field.name) || ''
- classifications = Classification.where(:id => value).pluck(:description)
- classifications = []
- value.each do |tag|
- classification = Classification.find_by(id: tag.split('::').second)
- classifications.push(classification.description) if classification
- if classifications.empty?
= h('')
-else
Expand Down

0 comments on commit 45929f0

Please sign in to comment.