- fix "show completed tasks" checkbox was working incorrectly (thanks to Brad Nathan)

This commit is contained in:
maxpozdeev 2022-09-15 16:37:19 +03:00
parent 657f496c70
commit 8e61b1c681

View file

@ -255,7 +255,7 @@ class ListsController extends ApiController {
Config::saveDomain('alltasks.json', $opts);
}
else {
$bitwise = $showCompleted ? 'taskview & ~1' : 'taskview | 1';
$bitwise = $showCompleted ? 'taskview | 1' : 'taskview & ~1';
$db->dq("UPDATE {$db->prefix}lists SET taskview=$bitwise WHERE id=?", [$listId]);
}
}