Content
View differences
Updated by Nirav Thakker almost 12 years ago
**<ins>Steps to Reproduce:</ins>**
1. Create new Work Package Type say ‘X’ as an Admin user
2. Create new Work Package, assign type as ‘X’ with Mandatory Values populated
3. Click Submit
4. Throws Internal Error. (Screenshot Attached)
5. Click Back, Shows successful Creation (Screenshot Attached)
Logs attached below.
Log Snapshot:
Completed 500 Internal Server Error in 93.5ms
ActionView::Template::Error (undefined method \`attribute’ for nil:NilClass):
51:
52:
<div class="issue details">
53:
<div class="meta">
54: \<% attributes = work\_package\_show\_attributes(work\_package) %\>
55:
<div id="left" style="float:left; width:50%;">
56:
<table class="attributes">
57: \<% attributes\[:left\].each do |attribute| %\>
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:174:in \`call\_hook’
app/helpers/work\_packages\_helper.rb:627:in \`hook\_attributes’
app/helpers/work\_packages\_helper.rb:340:in \`work\_package\_show\_attribute\_list’
app/helpers/work\_packages\_helper.rb:351:in \`work\_package\_show\_attributes’
app/views/work\_packages/show.html.erb:54:in \`\_app\_views\_work\_packages\_show\_html\_erb**\_670434761\_95795490’
app/controllers/work\_packages\_controller.rb:65:in \`block (2 levels) in show’
app/controllers/work\_packages\_controller.rb:63:in \`show’
Started GET “/projects/amc-mis/work\_packages/new” for OPHost-2 at 2014-07-10 12:14:39 +0530
Processing by WorkPackagesController\#new as HTML
Parameters: {“project\_id”=\>“amc-mis”}
OpenProject User: Nirav Thakker (nirav.thakker ID: 18 \<nirav.thakker@XXXXXX.com\>)
Rendered work\_packages/\_two\_column\_attributes.html.erb (0.1ms)
Rendered work\_packages/\_attributes.html.erb (54.8ms)
Rendered attachments/\_form.html.erb (1.2ms)
Rendered /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-costs-495b1dd1b0ae/app/views/hooks/costs/\_view\_work\_packages\_form\_details\_bottom.html.erb (2.6ms)
Rendered work\_packages/\_form.html.erb (81.3ms)
Rendered work\_packages/new.html.erb within layouts/base (84.3ms)
Rendered search/\_mini\_form.html.erb (0.9ms)
Rendered layouts/\_action\_menu.html.erb (0.1ms)
Completed 200 OK in 162.4ms (Views: 118.8ms | ActiveRecord: 20.9ms)
1. Create new Work Package Type say ‘X’ as an Admin user
2. Create new Work Package, assign type as ‘X’ with Mandatory Values populated
3. Click Submit
4. Throws Internal Error. (Screenshot Attached)
5. Click Back, Shows successful Creation (Screenshot Attached)
Logs attached below.
Log Snapshot:
Completed 500 Internal Server Error in 93.5ms
ActionView::Template::Error (undefined method \`attribute’ for nil:NilClass):
51:
52:
<div class="issue details">
53:
<div class="meta">
54: \<% attributes = work\_package\_show\_attributes(work\_package) %\>
55:
<div id="left" style="float:left; width:50%;">
56:
<table class="attributes">
57: \<% attributes\[:left\].each do |attribute| %\>
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:174:in \`call\_hook’
app/helpers/work\_packages\_helper.rb:627:in \`hook\_attributes’
app/helpers/work\_packages\_helper.rb:340:in \`work\_package\_show\_attribute\_list’
app/helpers/work\_packages\_helper.rb:351:in \`work\_package\_show\_attributes’
app/views/work\_packages/show.html.erb:54:in \`\_app\_views\_work\_packages\_show\_html\_erb**\_670434761\_95795490’
app/controllers/work\_packages\_controller.rb:65:in \`block (2 levels) in show’
app/controllers/work\_packages\_controller.rb:63:in \`show’
Started GET “/projects/amc-mis/work\_packages/new” for OPHost-2 at 2014-07-10 12:14:39 +0530
Processing by WorkPackagesController\#new as HTML
Parameters: {“project\_id”=\>“amc-mis”}
OpenProject User: Nirav Thakker (nirav.thakker ID: 18 \<nirav.thakker@XXXXXX.com\>)
Rendered work\_packages/\_two\_column\_attributes.html.erb (0.1ms)
Rendered work\_packages/\_attributes.html.erb (54.8ms)
Rendered attachments/\_form.html.erb (1.2ms)
Rendered /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-costs-495b1dd1b0ae/app/views/hooks/costs/\_view\_work\_packages\_form\_details\_bottom.html.erb (2.6ms)
Rendered work\_packages/\_form.html.erb (81.3ms)
Rendered work\_packages/new.html.erb within layouts/base (84.3ms)
Rendered search/\_mini\_form.html.erb (0.9ms)
Rendered layouts/\_action\_menu.html.erb (0.1ms)
Completed 200 OK in 162.4ms (Views: 118.8ms | ActiveRecord: 20.9ms)