Skip to content

Commit

Permalink
Used new scope to limit Plants in chart construction in activity#show…
Browse files Browse the repository at this point in the history
… to the active ones. Should fix #771
  • Loading branch information
Aquaj committed Jun 27, 2016
1 parent 2d5bf63 commit a990003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/backend/activities/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
dataset_inspections = resource.inspections

# get all plants in dataset
plants = Plant.find(dataset_inspections.pluck(:product_id).uniq)
plants = Plant.alive_at(Time.now).find(dataset_inspections.pluck(:product_id).uniq)

# get all inspections calibrations nature in activity
natures = resource.inspection_calibration_natures
Expand Down

0 comments on commit a990003

Please sign in to comment.