diff --git a/app/controllers/sessions/collection_base.rb b/app/controllers/sessions/collection_base.rb index 15d4c0c83..96deb0f83 100644 --- a/app/controllers/sessions/collection_base.rb +++ b/app/controllers/sessions/collection_base.rb @@ -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