# HG changeset patch # User jbe # Date 1543867880 -3600 # Node ID 31d7cb4991efc2f07604c0be82d77b4b721fec62 # Parent 99b40475e249bdcd2ac692a10798546e86876f99 Bug in check_issue function fixed, which could lead to non-accepted issues staying open after admission phase has ended diff -r 99b40475e249 -r 31d7cb4991ef core.sql --- a/core.sql Sun Nov 18 13:59:52 2018 +0100 +++ b/core.sql Mon Dec 03 21:11:20 2018 +0100 @@ -6163,7 +6163,8 @@ SELECT "calculated" INTO "last_calculated_v" FROM "snapshot" JOIN "snapshot_issue" ON "snapshot"."id" = "snapshot_issue"."snapshot_id" - WHERE "snapshot_issue"."issue_id" = "issue_id_p"; + WHERE "snapshot_issue"."issue_id" = "issue_id_p" + ORDER BY "snapshot"."id" DESC; IF "issue_row"."closed" NOTNULL THEN RETURN NULL; END IF;