mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
hook onModify into task undo (Closes: #2213)
This commit is contained in:
parent
dcdf7127e0
commit
48dff115c2
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue