Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening new hook form when custom fields exist #3

Open
cheoAlejo opened this issue May 25, 2015 · 0 comments
Open

Error opening new hook form when custom fields exist #3

cheoAlejo opened this issue May 25, 2015 · 0 comments

Comments

@cheoAlejo
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant