プロジェクト

全般

プロフィール

Vote #69567

完了

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

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
開始日:
2011/03/24
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
34
issue_org_id:
7985
author_id:
30851
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
31
ステータス-->[Closed]

説明

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:     

<%= custom_field_tag_for_bulk_edit('issue', custom_field) %>

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


journals

Do or +did+ you use some plugin handling a new custom field type ?
--------------------------------------------------------------------------------
It seems you have an unknown custom field format in your data. Can you run this query and report the result to make sure I'm not missing anything:

<pre>
SELECT DISTINCT field_format FROM custom_fields
</pre>

Anyway, it should not raise an error. It was introduced in r3675 and it's fixed in r5214.
--------------------------------------------------------------------------------
Hi Etienne and Jean-Philippe.

Yes, I did give the Google Docs plugin a whirl a while ago. And sure, enough:
<pre>
mysql> SELECT DISTINCT field_format FROM custom_fields;
+--------------+
| field_format |
+--------------+
| string |
| list |
| text |
| googledoc |
+--------------+
4 rows in set (0.00 sec)
</pre>

I have patched our Redmine with your fix, Jean-Philippe, and it now works.

Thanks a bunch!

--------------------------------------------------------------------------------
Thanks for your feedback. Merged in 1.1-stable.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリCustom fields_14 にセット
  • 対象バージョン1.1.3_34 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0