组织没有显示的问题
This commit is contained in:
parent
10eeeaa95c
commit
b2551f904b
|
@ -2283,7 +2283,7 @@ class UsersController < ApplicationController
|
||||||
@orgs = @user.organizations.where("name like ?", search).select{|org| OrgSubfield.where("organization_id = #{org.id} and field_type='Resource'").count > 0}
|
@orgs = @user.organizations.where("name like ?", search).select{|org| OrgSubfield.where("organization_id = #{org.id} and field_type='Resource'").count > 0}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if params[:send_type].present? and params[:send_type] == 'news'
|
if params[:send_type].present? and (params[:send_type] == 'news' or params[:send_type] == 'message')
|
||||||
@orgs = @user.organizations.select{|org| OrgSubfield.where("organization_id = #{org.id} and field_type='Post'").count > 0}
|
@orgs = @user.organizations.select{|org| OrgSubfield.where("organization_id = #{org.id} and field_type='Post'").count > 0}
|
||||||
else
|
else
|
||||||
@orgs = @user.organizations.select{|org| OrgSubfield.where("organization_id = #{org.id} and field_type='Resource'").count > 0}
|
@orgs = @user.organizations.select{|org| OrgSubfield.where("organization_id = #{org.id} and field_type='Resource'").count > 0}
|
||||||
|
|
Loading…
Reference in New Issue