hook onModify into task undo (Closes: #2213)
This commit is contained in:
committed by
Paul Beckingham
parent
dcdf7127e0
commit
48dff115c2
@@ -839,6 +839,9 @@ void TDB2::revert ()
|
|||||||
// - erase from completed
|
// - erase from completed
|
||||||
// - if in backlog, erase, else cannot undo
|
// - if in backlog, erase, else cannot undo
|
||||||
|
|
||||||
|
Task old = Task (prior);
|
||||||
|
Context::getContext ().hooks.onModify (Task (current), old);
|
||||||
|
|
||||||
// Modify other data files accordingly.
|
// Modify other data files accordingly.
|
||||||
std::vector <std::string> p = pending.get_lines ();
|
std::vector <std::string> p = pending.get_lines ();
|
||||||
revert_pending (p, uuid, prior);
|
revert_pending (p, uuid, prior);
|
||||||
|
|||||||
Reference in New Issue
Block a user