プロジェクト

全般

プロフィール

Vote #71017

未完了

Add the controller_timelog_edit_before_save hook to IssuesController.new()

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

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

0%

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

説明

The controller_timelog_edit_before_save hook is available in several of the TimelogController's methods. However, since TimeEntries can be created when updating an Issue, I found myself needing the same hook in IssuesController.new().

There is no hook in IssuesController.new() that lets plugin developers work with the TimeEntry.

I've attached the proposed hook-addition as one patch, and additionally a patch containing the plugin that utilizes it as an example.

I realize that it might be bad practice to have a hook named 'controller_timelog_*' outside of the TimelogController, but I think it makes sense to be able to use the same hook, as the plugin demonstrates.


journals

The patch assumes Redmine @ r8004.
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリPlugin API_20 にセット

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

いいね!0
いいね!0