From ffed9f6f44007f7c4bfc528af891c529b90eef35 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 22 Jul 2013 09:45:22 +0200 Subject: [PATCH] Fixed user based organization push. --- app/controllers/sessions/collection_base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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