Skip to content

Commit

Permalink
Merge pull request #8936 from GilbertCherrie/fix_provision_table
Browse files Browse the repository at this point in the history
Fixed provision custom specifications table
  • Loading branch information
agrare committed Oct 17, 2023
2 parents b18bc9b + 240ee6a commit 9eb0670
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/helpers/request_info_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def prov_vc_data(data)
rows = []
unless data[:spec_required]
rows += [prov_row_item(data[:none_index], none_cells(count))]
if data[:vc]
rows += data[:vc].map do |vc|
if data[:vcs]
rows += data[:vcs].map do |vc|
prov_row_item(vc.id.to_s, prov_vc_cells(vc))
end
end
Expand Down Expand Up @@ -314,10 +314,11 @@ def prov_template_cells(data)
end

def prov_vc_cells(data)
cells = []
edit[:vcs].each do |col|
cells += prov_cell_data(data.send(col))
end
[
prov_cell_data(data.name),
prov_cell_data(data.description),
prov_cell_data(data.last_update_time),
]
end

def prov_window_image_cells(data)
Expand Down

0 comments on commit 9eb0670

Please sign in to comment.