Feedback: Improved feedback for tasks that do not have ID
- Thanks to Tomas Babej.
This commit is contained in:
@@ -145,6 +145,7 @@
|
|||||||
'rc.json.depends.array=off'. Both forms are imported.
|
'rc.json.depends.array=off'. Both forms are imported.
|
||||||
- The 'commands' command shows the supported commands, with additional details
|
- The 'commands' command shows the supported commands, with additional details
|
||||||
that determine some of their behavior.
|
that determine some of their behavior.
|
||||||
|
- Improved feedback for tasks that do not have ID (thanks to Tomas Babej).
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ int CmdAdd::execute (std::string& output)
|
|||||||
context.tdb2.add (task);
|
context.tdb2.add (task);
|
||||||
|
|
||||||
// Do not display ID 0, users cannot query by that
|
// Do not display ID 0, users cannot query by that
|
||||||
if (context.verbose ("new-id") and task.id != 0)
|
if (context.verbose ("new-id") && task.id != 0)
|
||||||
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + "\n";
|
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + "\n";
|
||||||
else if (context.verbose ("new-uuid"))
|
else if (context.verbose ("new-uuid"))
|
||||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user