View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011967 | mantisbt | plug-ins | public | 2010-05-28 13:31 | 2014-12-08 00:34 |
Reporter | smig1o | Assigned To | dhx | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0011967: Problems with EVENT_UPDATE_BUG | ||||
Description | According to documentation EVENT_UPDATE_BUG is called before any changes will be made to bug data in database. | ||||
Tags | No tags attached. | ||||
related to | 0011804 | closed | dhx | allow_reporter_reopen lets reporter make any update, not just reopen |
has duplicate | 0011980 | closed | dhx | trigger EVENT_BUG_ACTION before saving to DB |
has duplicate | 0011710 | closed | dhx | EVENT_BUG_UPDATE fired after bug satus is changes for some statuses (e.g. CLOSED) |
has duplicate | 0011419 | closed | dhx | EVENT_UPDATE_BUG in bug_update.php happens after the bug is closed. |
child of | 0012097 | closed | atrol | Tracking issue for the refactoring of bug_update.php |
child of | 0015721 | closed | grangeway | Functionality to consider porting to master-2.0.x |
MantisBT: master 0b6540cb 2010-06-23 00:05 Details Diff |
Fix 0011967: Fix bug update events (both pre and post commit) The bug update events have been modified to be more useful to plugin developers. EVENT_UPDATE_BUG_DATA is a chained event type which allows plugins to compare the existing and updated bug data objects and make changes to either of these objects as appropriate. This event can also be used to invalidate a bug update for not meeting more complex rules. EVENT_UPDATE_BUG has been modified to execute after the update is committed to the database and prior to email and other notifications being sent. Again the original and updated bug data objects are provided so that plugins can compare the two objects to get a list of fields that changed during the update. |
Affected Issues 0011967 |
|
mod - bug_update.php | Diff File | ||
mod - docbook/developers/en/event-reference-bug.sgml | Diff File | ||
mod - core/events_inc.php | Diff File |