TW-1704: Task: Use Task::identifier to reference the task
To achieve consistent output, use a helper method to generate a proper handle - ID for tasks with non-zero ID, UUID otherwise.
This commit is contained in:
committed by
Paul Beckingham
parent
1236abc7d5
commit
2d25cf6f59
@@ -82,14 +82,9 @@ int CmdModify::execute (std::string&)
|
||||
checkConsistency(before, task);
|
||||
|
||||
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"));
|
||||
question = format (STRING_CMD_MODIFY_CONFIRM,
|
||||
task.identifier (true),
|
||||
task.get ("description"));
|
||||
|
||||
if (permission (taskDifferences (before, task) + question, filtered.size ()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user