Project

General

Profile

Actions

Defect #13753

open

Can't use helper functions in Hooks

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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.

Actions

Also available in: Atom PDF