diff --git a/managment/www/index.php b/managment/www/index.php index 04105ae..1e913d1 100644 --- a/managment/www/index.php +++ b/managment/www/index.php @@ -27,7 +27,7 @@ Colors: query($sql)->fetch_all(MYSQLI_ASSOC); if ($ret != False) { diff --git a/managment/www/progressinfo.php b/managment/www/progressinfo.php index 8d2258c..073ee97 100644 --- a/managment/www/progressinfo.php +++ b/managment/www/progressinfo.php @@ -28,7 +28,7 @@ { quit(); } - $stmt = $con->prepare("SELECT status.name AS status, COUNT(*) AS sCount, status.color AS color FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.parent_id = (SELECT id FROM topLevel WHERE name = ?) GROUP BY status.id"); + $stmt = $con->prepare("SELECT status.name AS status, COUNT(*) AS sCount, status.color AS color FROM secondLevel JOIN status ON secondLevel.status_id = status.id WHERE secondLevel.parent_id = (SELECT id FROM topLevel WHERE name = ?) GROUP BY status.id ORDER BY priority"); $stmt->bind_param("s", $tile); $stmt->execute(); $result = $stmt->get_result();