Edgewall Software

Changes between Version 7 and Version 8 of TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator


Ignore:
Timestamp:
May 4, 2020, 12:42:45 AM (4 years ago)
Author:
Ryan J Ollos
Comment:

Fix validate_comment documentation. Refs #11723, #12725.

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator

    v7 v8  
    2121Note 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.
    2222
    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.
     23Since 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.
    2424
    2525Note that the previous values of a changed ticket can be accessed in `ticket._old`. (See #10495.)