Skip to content

Commit

Permalink
Fixed 500 error with uninitialized helper method
Browse files Browse the repository at this point in the history
Fixed 500 error with uninitialized helper method
  • Loading branch information
namezero111111 authored and abahgat committed Oct 2, 2014
1 parent 9ee9110 commit d333170
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/views/issues/_didyoumean_injected.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
};
</script>

<%= javascript_tag "observeIssueSubjectField('#{@project.id}', #{@issue.id or '\'\''}, '#{issues_didyoumean_event_type}');" %>
<%= javascript_tag "observeIssueSubjectField('#{@project.id}', #{@issue.id or '\'\''}, '#{Setting.plugin_redmine_didyoumean['start_search_when'] == "1" ? "keyup" : "change"}');" %>
5 changes: 1 addition & 4 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@
settings(:default => default_settings, :partial => 'settings/didyoumean_settings')
end

ActionDispatch::Callbacks.to_prepare do
require 'redmine_didyoumean/hooks/didyoumean_hooks'
IssuesHelper.send :include, RedmineDidyoumean::Patches::SearchIssuesHelperPatch
end
require 'redmine_didyoumean/hooks/didyoumean_hooks'
13 changes: 0 additions & 13 deletions lib/redmine_didyoumean/patches/search_issues_helper_patch.rb

This file was deleted.

0 comments on commit d333170

Please sign in to comment.