Bug #1083
- Partially fixed #1083, which showed 'task 0 ...' when modifying a non- pending task (thanks to Aikido Guy).
This commit is contained in:
@@ -95,9 +95,15 @@ int CmdModify::execute (std::string& output)
|
||||
throw std::string (STRING_CMD_MODIFY_REC_ALWAYS);
|
||||
|
||||
// Delete the specified task.
|
||||
std::string question = format (STRING_CMD_MODIFY_CONFIRM,
|
||||
task->id,
|
||||
task->get ("description"));
|
||||
std::string question;
|
||||
if (task->id != 0)
|
||||
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 ()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user