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

template error (issues_didyoumean_event_type) with 2.4.4 #54

Open
akohlsmith opened this issue Mar 6, 2014 · 3 comments
Open

template error (issues_didyoumean_event_type) with 2.4.4 #54

akohlsmith opened this issue Mar 6, 2014 · 3 comments
Labels

Comments

@akohlsmith
Copy link

The plugin worked fine on 2.3. With 2.4.4, opening a specific issue results in the following crash:

Completed 500 Internal Server Error in 677.4ms

ActionView::Template::Error (undefined local variable or method `issues_didyoumean_event_type' for #<#<Class:0xbfea1b8>:0xd202b98>):
    19:   };
    20: </script>
    21:
    22: <%= javascript_tag "observeIssueSubjectField('#{@project.id}', #{@issue.id or '\'\''}, '#{issues_didyoumean_event_type}');" %>
  lib/redmine/hook.rb:111:in `block in render_on'
  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:158:in `call_hook'
  app/views/issues/_form.html.erb:44:in `block in _app_views_issues__form_html_erb___582396499_113230890'
  app/helpers/application_helper.rb:984:in `labelled_fields_for'
  app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb___582396499_113230890'
  app/views/issues/_edit.html.erb:8:in `block in _app_views_issues__edit_html_erb__915690113_112227570'
  app/helpers/application_helper.rb:977:in `labelled_form_for'
  app/views/issues/_edit.html.erb:1:in `_app_views_issues__edit_html_erb__915690113_112227570'
  app/controllers/issues_controller.rb:124:in `block (2 levels) in show'
  app/controllers/issues_controller.rb:121:in `show'
@abahgat abahgat added the bug label May 11, 2014
@jeacott
Copy link

jeacott commented Jul 30, 2014

I'm seeing this on 2.4.5 when creating a new issue.

ActionView::Template::Error (undefined local variable or method issues_didyoumean_event_type' for #<#<Class:0x00000008418fb8>:0x0000000552c3f8>): 19: }; 20: </script> 21: 22: <%= javascript_tag "observeIssueSubjectField('#{@project.id}', #{@issue.id or '\'\''}, '#{issues_didyoumean_event_type}');" %> lib/redmine/hook.rb:111:inblock in render_on'
lib/redmine/hook.rb:61:in block (2 levels) in call_hook' lib/redmine/hook.rb:61:ineach'
lib/redmine/hook.rb:61:in block in call_hook' lib/redmine/hook.rb:58:intap'
lib/redmine/hook.rb:58:in call_hook' lib/redmine/hook.rb:158:incall_hook'
app/views/issues/_form.html.erb:44:in `block in _app_views_issues__form_html_erb___922384719736951372_49135520'

@rlisowski
Copy link

I had similiar problem. I just moved IssuesHelper.send :include, RedmineDidyoumean::Patches::SearchIssuesHelperPatch outside ActionDispatch::Callbacks.to_prepare block in init.rb

@abahgat
Copy link
Owner

abahgat commented Oct 2, 2014

Thanks guys, sorry for the long wait.
d333170 by @namezero111111 should fix this: would you mind pulling it and seeing if that works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants