Defect #13753

Can't use helper functions in Hooks

Added by Moe H over 9 years ago. Updated over 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Plugin API
Target version:-
Resolution: Affected version:2.3.0


I've upgraded to Redmine 2.3. But a few of my plugins aren't working proberly. After a little bit of research, i noticed that many of the helpers dont work when called from hook.

For example, the redmine_time_tracker plugin monkey patched the ApplicationHelper and included some view helper functions, so that there always available. worked as expected in redmine 2.2. But in redmine 2.3 i'll get an error that the helper function is not available (while rendering a template).
The same with helpers like render_404 or flash etc.

I dont have specific error logs right now, but could add them if needed.


#1 Updated by Toshi MARUYAMA over 9 years ago

Also available in: Atom PDF