Changes between Version 7 and Version 8 of TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
- Timestamp:
- May 4, 2020, 12:42:45 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator
v7 v8 21 21 Note that the `validate_ticket` method is also called during preview. Check if `'submit' in req.args` or `'preview' in req.args` to determine if the validated ticket is getting saved or just previewed. 22 22 23 Since 1.3.2 `validate_ticket` is called during ticket comment edits. Check if`'edit_comment' in req.args` or `'preview_comment' in req.args` to determine if the ticket comment edit is being submitted or previewed.23 Since 1.3.2, `validate_comment` is called when appending or editing a ticket comment. The method is optional, and therefore only invoked when the method is present on the class implementing `ITicketManipulator`. Check for `'edit_comment' in req.args` or `'preview_comment' in req.args` to determine if the ticket comment edit is being submitted or previewed. 24 24 25 25 Note that the previous values of a changed ticket can be accessed in `ticket._old`. (See #10495.)