Defect #3347

Internal error occurs when doing bulk edit

Added by Minjie Zhu over 10 years ago. Updated over 10 years ago.

Status:ClosedStart date:2009-05-13
Priority:HighDue date:
Assignee:-% Done:

100%

Category:Issues
Target version:-
Resolution:Fixed Affected version:

Description

Confirmed with r2737

  1. In Issues page, select some issues and do the right-click to show the context-menu.
  2. Click the Edit in the context-menu.

Then Internal Error occured.

The log said

NameError (undefined local variable or method `current_role' for #<IssuesController:0xb6653b6c>):
    /app/controllers/issues_controller.rb:276:in `bulk_edit'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    ...

Regards.

Associated revisions

Revision 2739
Added by Jean-Philippe Lang over 10 years ago

Fixed: issue bulk edit view broken by r2726 (#3347).

Revision 2744
Added by Jean-Philippe Lang over 10 years ago

Fixed: issue status bulk edit broken by r2726 (#3347).

History

#1 Updated by Jean-Philippe Lang over 10 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

It was broken by r2726. It's fixed in r2739.

#2 Updated by Minjie Zhu over 10 years ago

  • % Done changed from 0 to 100

I confirmed the fix and it works well. Thanks :)

#3 Updated by Nanda P over 10 years ago

  • Status changed from Closed to Reopened

I am still getting the following error when I tried to close 4 tasks at a time (bulk edit)

Version: Redmine 0.8.0.devel.2743 (MySQL)

issues#bulk_edit (NameError) "undefined local variable or method `current_role' for #<IssuesController:0xa1334f4>" 

A NameError occurred in issues#bulk_edit:

  undefined local variable or method `current_role' for #<IssuesController:0xa1334f4>
  [RAILS_ROOT]/app/controllers/issues_controller.rb

#4 Updated by Jean-Philippe Lang over 10 years ago

  • Status changed from Reopened to Closed

Fixed in r2744.

#5 Updated by Nanda P over 10 years ago

Jean-Philippe Lang wrote:

Fixed in r2744.

r2744 is working fine. Thanks JP!

Also available in: Atom PDF