Add explicit join references in helper

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/3194/head
Alex Coles 9 years ago
parent 071e9eed7c
commit a50d071684
  1. 1
      app/helpers/versions_helper.rb

@ -47,6 +47,7 @@ module VersionsHelper
WorkPackage.group(criteria)
.includes(:status)
.where(["#{WorkPackage.table_name}.fixed_version_id = ? AND #{Status.table_name}.is_closed = ?", version.id, false])
.references(:statuses)
.count.each { |c, s|
h[c][1] = s
}

Loading…
Cancel
Save