removed OpenProject core version related switch

in issue_patch
Check is not needed anymore see: 48ec911fd0
pull/6827/head
Christian Ratz 12 years ago
parent 48ec911fd0
commit c067880dd6
  1. 5
      lib/open_project/costs/patches/issue_patch.rb

@ -31,10 +31,7 @@ module OpenProject::Costs::Patches::IssuePatch
@spent_hours ||= self.time_entries.visible(User.current).sum(:hours) || 0
end
if Redmine::VERSION::MAJOR >= 1
#chili 1.1.0 uses safe_attributes. Hence we must proclaim cost_object safe
safe_attributes "cost_object_id"
end
safe_attributes "cost_object_id"
end
end

Loading…
Cancel
Save