Project

General

Profile

Actions

Patch #4850

closed

Extract updatable attrs on move

Added by Holger Just about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-02-15
Due date:
% Done:

0%

Estimated time:

Description

I am currently developing a plugin which extends issues with additional information from a different model. As this information is project specific, I need to handle issue moves across project boundaries.

This patch extracts the array of updatable attributes during a move to a separate function (which can be extended by a plugin) and adds two hooks to initialize the my data and display it in the view.

The actual moving / updating of the data can be handled with the after_update (for move) and after_create (for copy) hooks on the issue itself.


Files

Actions #1

Updated by Jean-Philippe Lang about 14 years ago

The hook is not consistent with those in #new or #edit.
It should be named controller_issues_move_before_save and be called just before save for each issue.

Concerning the array of updatable attributes, it has to refactored anyway since attribute names should not be hardcoded in the controller.
You should implement your logic in your hook only.

Actions #2

Updated by Jean-Philippe Lang about 14 years ago

  • Status changed from New to Closed

See r3456, r3457.

Actions

Also available in: Atom PDF