View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011710 | mantisbt | plug-ins | public | 2010-03-25 04:14 | 2010-09-19 03:13 |
| Reporter | mkb | Assigned To | dhx | ||
| Priority | high | Severity | major | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Product Version | 1.2.0 | ||||
| Summary | 0011710: EVENT_BUG_UPDATE fired after bug satus is changes for some statuses (e.g. CLOSED) | ||||
| Description | EVENT_BUG_UPDATE is for some status changes (e.g. CLOSED) fired only AFTER new status was already saved into database. It means that even plugin thorws an error data are saved. I suggest fixing this by moving following lines in bug_update.php: Plugin support
before special bug states are handled (about line 158 in 1.2.0 sources). | ||||
| Steps To Reproduce |
| ||||
| Additional Information | Our case: we need to check if there is an integration test attached before a bug is closed. We are checking this in plugin using EVENT_BUG_UPDATE. But if status is changed before our test takes place user can close the bug even without integration test. | ||||
| Tags | No tags attached. | ||||