mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
fix query for supporters
This commit is contained in:
parent
84d30e13f0
commit
76614b858c
1 changed files with 5 additions and 1 deletions
|
|
@ -24,7 +24,11 @@ class Admin::StatsController < ApplicationController
|
|||
end
|
||||
|
||||
def reg_support(level)
|
||||
Registration.find_by_sql("select supporter_registrations.* FROM registrations, supporter_registrations, supporter_levels WHERE registrations.id = supporter_registrations.registration_id AND registrations.conference_id = #{@conference.id} AND supporter_registrations.supporter_level_id = #{level.id}")
|
||||
Registration.find_by_sql("select supporter_registrations.*
|
||||
FROM registrations INNER JOIN supporter_registrations
|
||||
ON registrations.id = supporter_registrations.registration_id
|
||||
WHERE registrations.conference_id = #{@conference.id}
|
||||
AND supporter_registrations.supporter_level_id = #{level.id}")
|
||||
end
|
||||
|
||||
def speaker_reg(speaker)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue