NAME label can not be reset to NAME
When a table is created, the default label for the task name is NAME
. If the user changes it and then wishes to reset it to NAME
, it will be set to the database name instead.\
Example of bug:
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --add-table test
Ok, the table was added.
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --add-task test "a nice task" "place" 2023-03-08 false
Ok, the task was added.
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --tasks test
ID DONE DATE LOCATION NAME
BGHIDBEIJIJBCJBCGBD No 2023-03-08 00:00:00 place a nice task
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --edit-label test NAME tname
Ok, the table was updated successfully.
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --tasks test
ID DONE DATE LOCATION tname
BGHIDBEIJIJBCJBCGBD No 2023-03-08 00:00:00 place a nice task
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --edit-label test NAME NAME
Ok, the table was updated successfully.
cameron@Mikoshi ~/P/g/t/todo-tui (tui-cpp)> todo-cli --tasks test
ID DONE DATE LOCATION test
BGHIDBEIJIJBCJBCGBD No 2023-03-08 00:00:00 place a nice task
Edited by Cait Himes