Project

General

Profile

Actions

Defect #23867

closed

New issue from all issues is giving "ActionView::Template::Error"

Added by Mentel Inc about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Here's what we have and what we get when clicking on add an issue (.com/issues/new)

  Redmine version      3.3.0.stable
  Ruby version         2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version        4.2.6
Started GET "/issues/new" for ******** at 2016-09-20 08:29:45 -0400
Processing by IssuesController#new as HTML
  Current user: ******** (id=*)
  Rendered issues/_form.html.erb (5.0ms)
  Rendered issues/new.html.erb within layouts/base (6.6ms)
Completed 500 Internal Server Error in 48ms (ActiveRecord: 5.3ms)

ActionView::Template::Error (undefined method `id' for nil:NilClass):
    1: <%= labelled_fields_for :issue, @issue do |f| %>
    2: <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
    3: <%= hidden_field_tag 'form_update_triggered_by', '' %>
    4: 
    5: <% if @issue.safe_attribute? 'is_private' %>
  plugins/redmine_issue_templates/lib/issue_templates_issues_hook.rb:23:in `view_issues_form_details_top'
  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:96:in `call_hook'
  app/views/issues/_form.html.erb:2:in `block in _app_views_issues__form_html_erb___4437785814333451970_70147895881400'
  app/helpers/application_helper.rb:1058:in `labelled_fields_for'
  app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb___4437785814333451970_70147895881400'
  app/views/issues/new.html.erb:11:in `block in _app_views_issues_new_html_erb__969471801192373352_70147897290300'
  app/helpers/application_helper.rb:1051:in `labelled_form_for'
  app/views/issues/new.html.erb:5:in `_app_views_issues_new_html_erb__969471801192373352_70147897290300'
  app/controllers/issues_controller.rb:129:in `block (2 levels) in new'
  app/controllers/issues_controller.rb:128:in `new'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Actions #1

Updated by Toshi MARUYAMA about 8 years ago

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

Please contact plugin author.

Actions

Also available in: Atom PDF