Actions
Defect #20358
openIn some situation, my plugin render view hook twice
Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
I wrote a plugin for my company and
I referenced offical redmine plugin develop tutorial to add hook with my plugin.
I do something like this :
class MyPluginHook < Redmine::Hook::ViewListener
    render_on :view_projects_show_left, :partial => "polls/project_overview" 
end
It worked fined until I modified some features.
I got the information for log that this hook rendered two time
,so the whole page turn into a mess.
After restarting apache (I use apache 2.2 & passenger)
Everything is fined again, but sometimes it happened again.
By sometimes, this may happen after issue updating.
       Updated by Toshi MARUYAMA about 10 years ago
      Updated by Toshi MARUYAMA about 10 years ago
      
    
    - Category changed from Hook requests to Plugin API
Actions