Skip to content

Error opening new hook form when custom fields exist #3

@cheoAlejo

Description

@cheoAlejo

When I try to access New hook form ( Global hooks --> New hook ) an internal error ocurs. The error only happens when custom fields exist in the database, otherwise the form opens just fine.

production.log:

Processing by GlobalHooksController#new as HTML
  Current user: admin (id=1)
  Rendered plugins/redmine_undev_git/app/views/global_hooks/_form.html.erb (199.0ms)
  Rendered plugins/redmine_undev_git/app/views/global_hooks/new.html.erb within layouts/admin (203.7ms)
Completed 500 Internal Server Error in 239.3ms

ActionView::Template::Error (uninitialized constant Redmine::CustomFieldFormat):
    40:                     class: 'hook_assigned_to_id' %></p>
    41:
    42:     <% hook.custom_field_values.each do |value| %>
    43:       <p><%= hook_custom_field_value_tag_with_label :global_hook, value %></p>
    44:     <% end -%>
    45:   </fieldset>
    46: </div>
  app/helpers/application_helper.rb:1056:in `labelled_form_for'

My environment:

Environment:
  Redmine version                2.6.5.stable
  Ruby version                   2.0.0-p643 (2015-02-25) [x86_64-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
SCM:
  UndevGit                       1.9.1
  Git                            1.9.1
  Filesystem                     
Redmine plugins:
  progressive_projects_list      2.0.1
  quick_view                     0.1.0
  redmine_checklists             3.1.1
  redmine_dashboard              2.5.0
  redmine_default_members        1.0.0
  redmine_documents              1.0.0
  redmine_mail_reminder          2.6.5.0001
  redmine_my_page_queries        2.1.6
  redmine_people                 0.1.8
  redmine_questions              0.0.5
  redmine_silencer               0.4.0
  redmine_stats                  0.0.2
  redmine_sticky_messages        1.0.1
  redmine_tags                   2.1.0
  redmine_undev_git              0.2.10
  redrisk                        1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions