Patch #4850
closedExtract updatable attrs on move
0%
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
Updated by Jean-Philippe Lang about 15 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.
Updated by Jean-Philippe Lang about 15 years ago
- Status changed from New to Closed