Fixed user based organization push.
This commit is contained in:
parent
0aec08cc1f
commit
ffed9f6f44
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ module ExtraCollection
|
|||
collections['Organization'] = Organization.all
|
||||
else
|
||||
if user.organization_id
|
||||
collections['Organization'] = Organization.find( user.organization_id )
|
||||
collections['Organization'] = Organization.where( :id => user.organization_id )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,7 +26,7 @@ module ExtraCollection
|
|||
collections['Organization'] = Organization.all
|
||||
else
|
||||
if user.organization_id
|
||||
collections['Organization'] = Organization.find( user.organization_id )
|
||||
collections['Organization'] = Organization.where( :id => user.organization_id )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue