Project

General

Profile

Actions

Defect #7985

closed

Trying to do a bulk edit results in "Internal Error"

Added by Todd Courtnage over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
Start date:
2011-03-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When selecting multiple issues in the issue list, right clicking and selecting "Edit" from the context menu results in an "Internal Error" white screen.

The production.log shows this error:

Processing IssuesController#bulk_edit (for 192.168.1.1 at 2011-03-24 11:33:44) [GET]
  Parameters: {"ids"=>["7606", "7607", "7689"], "action"=>"bulk_edit", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/bulk_edit

ActionView::TemplateError (undefined method `edit_as' for nil:NilClass) on line #51 of app/views/issues/bulk_edit.rhtml:
48: <% end %>
49: 
50: <% @custom_fields.each do |custom_field| %>
51:     <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field) %></p>
52: <% end %>
53: 
54: <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>

    app/helpers/custom_fields_helper.rb:75:in `custom_field_tag_for_bulk_edit'
    app/views/issues/bulk_edit.rhtml:51:in `_run_rhtml_app47views47issues47bulk_edit46rhtml'
    app/views/issues/bulk_edit.rhtml:50:in `each'
    app/views/issues/bulk_edit.rhtml:50:in `_run_rhtml_app47views47issues47bulk_edit46rhtml'
    app/views/issues/bulk_edit.rhtml:5:in `_run_rhtml_app47views47issues47bulk_edit46rhtml'
    /usr/lib/ruby/1.8/mongrel/rails.rb:76:in `process'
    /usr/lib/ruby/1.8/mongrel/rails.rb:74:in `synchronize'
    /usr/lib/ruby/1.8/mongrel/rails.rb:74:in `process'
    /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
    /usr/lib/ruby/1.8/mongrel.rb:158:in `each'
    /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
    /usr/lib/ruby/1.8/mongrel.rb:285:in `run'
    /usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
    /usr/lib/ruby/1.8/mongrel.rb:285:in `new'
    /usr/lib/ruby/1.8/mongrel.rb:285:in `run'
    /usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
    /usr/lib/ruby/1.8/mongrel.rb:268:in `new'
    /usr/lib/ruby/1.8/mongrel.rb:268:in `run'
    /usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run'
    /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each'
    /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run'
    /usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'

Rendering /opt/redmine-1.1.2/public/500.html (500 Internal Server Error)

This was happening with Redmine 1.1.0 and continues to happen with Redmine 1.1.2. It had worked at some point in time previous to 1.1.0, but not sure what version.

Other info:
MySQL 5.1.49
Ruby 1.8.7
Rails 2.3.5

Actions

Also available in: Atom PDF