mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
parent
6cd5bf1237
commit
a69b0c8032
2 changed files with 17 additions and 1 deletions
|
@ -169,7 +169,12 @@ void TDB2::modify (Task& task)
|
|||
update = true;
|
||||
}
|
||||
if (update) {
|
||||
tctask.set_value(k, make_optional (v_new));
|
||||
// An empty string indicates the value should be removed.
|
||||
if (v_new == "") {
|
||||
tctask.set_value(k, {});
|
||||
} else {
|
||||
tctask.set_value(k, make_optional (v_new));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue