プロジェクト

全般

プロフィール

Vote #77551

未完了

Hook for deleted issues

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Hook requests_54
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
54
version_id:
0
issue_org_id:
23119
author_id:
130529
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Hello,
I saw the "list of hooks":http://www.redmine.org/projects/redmine/wiki/Hooks_List and I'd like to know if it was possible to have a new hook letting us doing things when an issue is deleted.
Why not:

 :controller_issues_before_destroy
 :controller_issues_after_destroy

journals

These Hooks can then be used to maintain a recycle bin in Redmine.
--------------------------------------------------------------------------------
You can already use the basic ActiveRecord callbacks on the @Issue@ model, which include @before_destroy@ and @after_destroy@ callbacks. Please check the "Documentation":http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html for details on how to use them. You can register your own model callbacks by adding a simple declarative model patch in your plugin.

If you still do need those Redmine hooks, please describe in more detail how they can be useful to solve the problem in a way that the standard ActiveRecord callbacks can not.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0