hook onModify into task undo (Closes: #2213)

This commit is contained in:
Jochen Sprickerhof 2019-09-13 15:55:44 +02:00 committed by Paul Beckingham
parent dcdf7127e0
commit 48dff115c2

View file

@ -839,6 +839,9 @@ void TDB2::revert ()
// - erase from completed
// - if in backlog, erase, else cannot undo
Task old = Task (prior);
Context::getContext ().hooks.onModify (Task (current), old);
// Modify other data files accordingly.
std::vector <std::string> p = pending.get_lines ();
revert_pending (p, uuid, prior);