don't rely on project instance variable and use given option instead

pull/6827/head
Markus Kahl 8 years ago
parent 5a23b394f8
commit e779d76120
  1. 4
      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)

Loading…
Cancel
Save