Menu

Commit [r9107]  Maximize  Restore  History

Ticket: Made ticket comment editing more robust against special cases in ticket comments.

Added unit tests for ticket comment editing and all the special cases uncovered so far, plus one additional (not yet observed in the wild):

* Unnumbered ticket comments
* Ticket changes where the `comment` field is missing
* Missing ticket comment edits

Also, added a unit test for, and fixed the ticket comment edit history, which was broken for >10 edits.

Closes #9001.

rblank 2010-01-29

changed /trunk/trac/ticket/model.py
changed /trunk/trac/ticket/tests/model.py
/trunk/trac/ticket/model.py Diff Switch to side-by-side view
Loading...
/trunk/trac/ticket/tests/model.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB