动态一致问题
This commit is contained in:
parent
aee695e94d
commit
a9412b959e
|
@ -165,7 +165,8 @@ class OrganizationsController < ApplicationController
|
|||
def get_project_activities_org org
|
||||
project_ids = org.projects.map{|project| project.id}.join(",")
|
||||
unless project_ids.blank?
|
||||
project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{project_ids}) and container_type = 'project' order by updated_at desc limit 8;")
|
||||
project_acts = OrgActivity.find_by_sql("SELECT * FROM org_activities where container_id in (#{project_ids}) and container_type = 'project'
|
||||
and org_act_type in ('Message', 'Issue') order by updated_at desc limit 8;")
|
||||
else
|
||||
project_acts = nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue