Project

General

Profile

Actions

Feature #9726

open

Add the controller_timelog_edit_before_save hook to IssuesController.new()

Added by Max Haventon almost 13 years ago. Updated almost 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

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.


Files

Actions #1

Updated by Max Haventon almost 13 years ago

The patch assumes Redmine @ r8004.

Actions

Also available in: Atom PDF