hook controller_issues_edit_before_save ignored when batch updating issues

Added by Dietmar H almost 8 years ago

We created a custom hook for issue status updates.
It works, but only when updating single issues.
When updating from the issue list by selecting multiple issues, then changing status via right click context menu, the hook is ignored.

It's implemented like this:

module MyContract
  class Hooks < Redmine::Hook::ViewListener
    def controller_issues_edit_before_save(context={})
      ...

What do I need to change in order to also have it listening for batch updates?

Replies (2)

RE: hook controller_issues_edit_before_save ignored when batch updating issues - Added by Marco Gutsche almost 8 years ago

Have you tried the hook controller_issues_bulk_edit_before_save?

RE: hook controller_issues_edit_before_save ignored when batch updating issues - Added by Dietmar H almost 8 years ago

Marco Gutsche wrote:

Have you tried the hook controller_issues_bulk_edit_before_save?

Perfect, thanks!

(1-2/2)