https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-10-30T12:43:31ZRedmineRedmine - Defect #2111: Hook issue in some places of redminehttps://www.redmine.org/issues/2111?journal_id=53442008-10-30T12:43:31ZDiego Sousa
<ul></ul><p>i found the problem, in IssuesController i dont get error because of mixin with IssuesHelper and inside IssuesHelper have a mixin with ApplicationHelper that include the Redmine::Hook::Helper that have the method call_hook, TimelogController has a mixin too with TimelogHelper but TimelogHelper dont have a mixin with ApplicationHelper, well instead of mixin every helper i changed the hook.rb file lib/redmine/hook.rb in the last line i add <strong>ActionController::Base.send(:include, Redmine::Hook::Helper)</strong> now all the controllers have the call_hook method.</p> Redmine - Defect #2111: Hook issue in some places of redminehttps://www.redmine.org/issues/2111?journal_id=53462008-10-30T15:38:55ZEric Davis
<ul><li><strong>Category</strong> set to <i>Plugin API</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>7</i></li><li><strong>Assignee</strong> set to <i>Eric Davis</i></li><li><strong>Affected version (unused)</strong> set to <i>devel</i></li></ul><p>Good research, I knew somewhere the Redmine::Hook::Helper wasn't getting mixed in but I didn't have the time to debug it. I should be able to create a fix for this soon.</p> Redmine - Defect #2111: Hook issue in some places of redminehttps://www.redmine.org/issues/2111?journal_id=54072008-11-06T05:39:14ZEric Davis
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>0.8</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p><code>Redmine::Hook::Helper</code> is now included in <code>ActionController::Base</code> so <code>call_hook</code> is available in all controllers. Thank you for your bug report and the research. <a class="changeset" title="Included Redmine::Hook::Helper to ActionController::Base so call_hook is available in all control..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1979">r1979</a></p> Redmine - Defect #2111: Hook issue in some places of redminehttps://www.redmine.org/issues/2111?journal_id=55842008-11-11T15:09:10ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Closing this ticket since it seems to be fixed.</p>