Project

General

Profile

Actions

Defect #3347

closed

Internal error occurs when doing bulk edit

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

Status:
Closed
Priority:
High
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2009-05-13
Due date:
% Done:

100%

Estimated time:
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.

Actions #1

Updated by Jean-Philippe Lang over 15 years ago

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

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

Actions #2

Updated by Minjie Zhu over 15 years ago

  • % Done changed from 0 to 100

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

Actions #3

Updated by Nanda P over 15 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
Actions #4

Updated by Jean-Philippe Lang over 15 years ago

  • Status changed from Reopened to Closed

Fixed in r2744.

Actions #5

Updated by Nanda P over 15 years ago

Jean-Philippe Lang wrote:

Fixed in r2744.

r2744 is working fine. Thanks JP!

Actions

Also available in: Atom PDF