From e779d7612026966dd80242d36db372fefa61ba7a Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Wed, 10 Aug 2016 11:44:53 +0100 Subject: [PATCH] don't rely on project instance variable and use given option instead --- lib/open_project/costs/patches/members_patch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/open_project/costs/patches/members_patch.rb b/lib/open_project/costs/patches/members_patch.rb index fc82aa53aa..ad9d3806da 100644 --- a/lib/open_project/costs/patches/members_patch.rb +++ b/lib/open_project/costs/patches/members_patch.rb @@ -111,7 +111,7 @@ module OpenProject::Costs end def project - context[:controller].instance_variable_get('@project') + options[:project] end end @@ -134,7 +134,7 @@ module OpenProject::Costs end def project - context[:controller].instance_variable_get('@project') + table.project end def column_css_class(name)