From c51a46567d143280a3fe8293c993f758248b0550 Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Mon, 1 Aug 2022 22:14:07 +0300 Subject: [PATCH] fix: alltasks list sorting was not saved on change --- src/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.php b/src/api.php index dda691b..64816d4 100644 --- a/src/api.php +++ b/src/api.php @@ -186,7 +186,7 @@ function haveWriteAccess(?int $listId = null) return false; } // check list exist - if ($listId !== null) + if ($listId !== null && $listId != -1) { $db = DBConnection::instance(); $count = $db->sq("SELECT COUNT(*) FROM {$db->prefix}lists WHERE id=?", array($listId));