fix excel generation if project filter is not set, but we are in the project scope

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1744 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 14 years ago
parent 0f5351fd33
commit be08347354
  1. 2
      lib/xls_report/cost_reports_controller_patch.rb

@ -41,7 +41,7 @@ if require_dependency 'cost_reports_controller'
when :issue_id
return l(:label_none) if value.to_i == 0
issue = Issue.find(value.to_i)
"#{issue.project + " - " if @project}#{issue.tracker} ##{issue.id}: #{issue.subject}"
"#{issue.project.name + " - " if @project}#{issue.tracker} ##{issue.id}: #{issue.subject}"
else super(key, value)
end
end

Loading…
Cancel
Save