mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
Bug #1083
- Partially fixed #1083, which showed 'task 0 ...' when modifying a non- pending task (thanks to Aikido Guy).
This commit is contained in:
parent
6a4fd6b133
commit
2f10e8d2e2
2 changed files with 11 additions and 3 deletions
|
@ -27,6 +27,8 @@ Bugs
|
||||||
provides an incorrect summary.
|
provides an incorrect summary.
|
||||||
+ Fixed bug #1048, which segfaulted rather than complain about syntax (thanks
|
+ Fixed bug #1048, which segfaulted rather than complain about syntax (thanks
|
||||||
to Bryce Harrington, Štěpán Henek).
|
to Bryce Harrington, Štěpán Henek).
|
||||||
|
+ Partially fixed #1083, which showed 'task 0 ...' when modifying a non-
|
||||||
|
pending task (thanks to Aikido Guy).
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -95,9 +95,15 @@ int CmdModify::execute (std::string& output)
|
||||||
throw std::string (STRING_CMD_MODIFY_REC_ALWAYS);
|
throw std::string (STRING_CMD_MODIFY_REC_ALWAYS);
|
||||||
|
|
||||||
// Delete the specified task.
|
// Delete the specified task.
|
||||||
std::string question = format (STRING_CMD_MODIFY_CONFIRM,
|
std::string question;
|
||||||
task->id,
|
if (task->id != 0)
|
||||||
task->get ("description"));
|
question = format (STRING_CMD_MODIFY_CONFIRM,
|
||||||
|
task->id,
|
||||||
|
task->get ("description"));
|
||||||
|
else
|
||||||
|
question = format (STRING_CMD_MODIFY_CONFIRM,
|
||||||
|
task->get ("uuid"),
|
||||||
|
task->get ("description"));
|
||||||
|
|
||||||
if (permission (*task, taskDifferences (before, *task) + question, filtered.size ()))
|
if (permission (*task, taskDifferences (before, *task) + question, filtered.size ()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue