Defect #20358

In some situation, my plugin render view hook twice

Added by 致遠 詹 over 7 years ago. Updated over 7 years ago.

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

0%

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

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.

History

#1 Updated by Toshi MARUYAMA over 7 years ago

  • Category changed from Hook requests to Plugin API

Also available in: Atom PDF