Project

General

Profile

Defect #972

Updated by Emilio González Montaña over 8 years ago

To reproduce: 
 # open -a -open a project where the scrum plugin is enabled- 
 # Open general "issues" tab (all projects) 
 # go to "issues" tab 
 # click on green 'V' on top of list to select all issues 
 # right-click on selected issues list 
 # in pop-up menu, select "edit" 

 Here is the error message you then get: 

 <pre> 
 Internal error 

 An error occurred on the page you were trying to access. 
 If you continue to experience problems please contact your Redmine administrator for assistance. 

 If you are the Redmine administrator, check your log files for details about the error. 

 Back 
 </pre> 

 The following messages have been found in the log (debug mode enabled): 

 <pre> 
   Rendered plugins/scrum/app/views/scrum_hooks/issues/_bulk_edit.html.erb (0.8ms) 
   Rendered issues/bulk_edit.html.erb within layouts/base (116.6ms) 
 Completed 500 Internal Server Error in 1181.0ms 

 ActionView::Template::Error (undefined method `module_enabled?' for nil:NilClass): 
     1: <%- if @project.module_enabled?(:scrum) -%> 
     2:     <% if @safe_attributes.include?("sprint_id") -%> 
     3:       <p> 
     4:         <label for="sprint_id"><%= l(:field_sprint) %></label> 
   lib/redmine/hook.rb:111:in `block in render_on' 
   lib/redmine/hook.rb:61:in `block (2 levels) in call_hook' 
   lib/redmine/hook.rb:61:in `each' 
   lib/redmine/hook.rb:61:in `block in call_hook' 
   lib/redmine/hook.rb:58:in `tap' 
   lib/redmine/hook.rb:58:in `call_hook' 
   lib/redmine/hook.rb:158:in `call_hook' 
   app/views/issues/bulk_edit.html.erb:116:in `block in _app_views_issues_bulk_edit_html_erb___2243423065321322513_70092476344140' 
   app/views/issues/bulk_edit.html.erb:25:in `_app_views_issues_bulk_edit_html_erb___2243423065321322513_70092476344140' 
 </pre> 

Back