Edgewall Software

Changes between Version 5 and Version 6 of TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator


Ignore:
Timestamp:
Jul 3, 2015, 10:12:00 AM (9 years ago)
Author:
anonymous
Comment:

Notes about previews and comment editing

Legend:

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

    v5 v6  
    1818
    1919Note that the `validate_ticket` method can also be used to ''manipulate'' the ticket's fields before they are saved.
     20
     21Note 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
     23Note that the `validate_ticket` method is not called during comment editing.
    2024
    2125Note that the previous values of a changed ticket can be accessed in `ticket._old`. (See #10495.)