Content
View differences
Updated by Jonas Heinrich (Finn) over 12 years ago
**Precondition**
- Work package tracking module is activated.
- Cost module activated.
- Maybe this is due to the migration 2.4-\>3.0.
**Steps to reproduce**
1. Create a work package with a budget and log time and unit costs onto them.
2. Try to show them again.
**Actual behavior**
Internal Error.
**Expected behavior**
The work package is shown.
**Strack trace**
For work packages that have costs associated with them the following error is thrown when trying to show them:
Started GET "/work_packages/24455" for 25.95.205.171 at 2014-01-20 16:48:32 +0000
Processing by WorkPackagesController#show as HTML
Parameters: {"id"=>"24455"}
Rendered /Users/[...]/bundler/gems/openproject-costs-c235612afaba/app/views/hooks/costs/_view_work_package_show_action_menu.html.erb (1.5ms)
Rendered work_packages/_action_menu.html.erb (7.0ms)
Rendered accessibility/_empty_element_tag.html.erb (0.1ms)
Rendered work_packages/show.html.erb within layouts/base (51.7ms)
Completed 500 Internal Server Error in 93.4ms
ActionView::Template::Error (undefined method `link_to_cost_object' for #<OpenProject::Costs::Hooks::WorkPackagesShowHook:0x00000109785a50>):
49:
50: <div class="issue details">
51: <div class="meta">
52: <% attributes = work_package_show_attributes(work_package) %>
53: <div id="left" style="float:left; width:50%;">
54: <table class="attributes">
55: <% attributes[:left].each do |attribute| %>
app/helpers/work_packages_helper.rb:356:in `work_package_show_table_row'
lib/redmine/hook.rb:73:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:73:in `each'
lib/redmine/hook.rb:73:in `block in call_hook'
lib/redmine/hook.rb:70:in `tap'
lib/redmine/hook.rb:70:in `call_hook'
lib/redmine/hook.rb:170:in `call_hook'
app/helpers/work_packages_helper.rb:622:in `hook_attributes'
app/helpers/work_packages_helper.rb:338:in `work_package_show_attribute_list'
app/helpers/work_packages_helper.rb:349:in `work_package_show_attributes'
app/views/work_packages/show.html.erb:52:in `_app_views_work_packages_show_html_erb__1969207499467659062_2271845240'
app/controllers/work_packages_controller.rb:64:in `block (2 levels) in show'
app/controllers/work_packages_controller.rb:62:in `show'
- Work package tracking module is activated.
- Cost module activated.
- Maybe this is due to the migration 2.4-\>3.0.
**Steps to reproduce**
1. Create a work package with a budget and log time and unit costs onto them.
2. Try to show them again.
**Actual behavior**
Internal Error.
**Expected behavior**
The work package is shown.
**Strack trace**
For work packages that have costs associated with them the following error is thrown when trying to show them:
Started GET "/work_packages/24455" for 25.95.205.171 at 2014-01-20 16:48:32 +0000
Processing by WorkPackagesController#show as HTML
Parameters: {"id"=>"24455"}
Rendered /Users/[...]/bundler/gems/openproject-costs-c235612afaba/app/views/hooks/costs/_view_work_package_show_action_menu.html.erb (1.5ms)
Rendered work_packages/_action_menu.html.erb (7.0ms)
Rendered accessibility/_empty_element_tag.html.erb (0.1ms)
Rendered work_packages/show.html.erb within layouts/base (51.7ms)
Completed 500 Internal Server Error in 93.4ms
ActionView::Template::Error (undefined method `link_to_cost_object' for #<OpenProject::Costs::Hooks::WorkPackagesShowHook:0x00000109785a50>):
49:
50: <div class="issue details">
51: <div class="meta">
52: <% attributes = work_package_show_attributes(work_package) %>
53: <div id="left" style="float:left; width:50%;">
54: <table class="attributes">
55: <% attributes[:left].each do |attribute| %>
app/helpers/work_packages_helper.rb:356:in `work_package_show_table_row'
lib/redmine/hook.rb:73:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:73:in `each'
lib/redmine/hook.rb:73:in `block in call_hook'
lib/redmine/hook.rb:70:in `tap'
lib/redmine/hook.rb:70:in `call_hook'
lib/redmine/hook.rb:170:in `call_hook'
app/helpers/work_packages_helper.rb:622:in `hook_attributes'
app/helpers/work_packages_helper.rb:338:in `work_package_show_attribute_list'
app/helpers/work_packages_helper.rb:349:in `work_package_show_attributes'
app/views/work_packages/show.html.erb:52:in `_app_views_work_packages_show_html_erb__1969207499467659062_2271845240'
app/controllers/work_packages_controller.rb:64:in `block (2 levels) in show'
app/controllers/work_packages_controller.rb:62:in `show'