From 8f5f705bebb470da4117d84d98dc919b4e113b7d Mon Sep 17 00:00:00 2001 From: lfield Date: Wed, 6 Feb 2019 14:09:57 +0100 Subject: [PATCH] Reverting PR #2794 The project_state field is for defining project specific states so the PR was incorrect. --- html/inc/submit_util.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/inc/submit_util.inc b/html/inc/submit_util.inc index 4f36156df6..b8ca9740e1 100644 --- a/html/inc/submit_util.inc +++ b/html/inc/submit_util.inc @@ -129,7 +129,7 @@ function abort_batch($batch) { foreach ($wus as $wu) { abort_workunit($wu); } - $batch->update("project_state=".BATCH_STATE_ABORTED); + $batch->update("state=".BATCH_STATE_ABORTED); return 0; } @@ -143,13 +143,13 @@ function retire_batch($batch) { "assimilate_state=".ASSIMILATE_DONE.", transition_time=$now" ); } - $batch->update("project_state=".BATCH_STATE_RETIRED); + $batch->update("state=".BATCH_STATE_RETIRED); } function expire_batch($batch) { abort_batch($batch); retire_batch($batch); - $batch->update("project_state=".BATCH_STATE_EXPIRED); + $batch->update("state=".BATCH_STATE_EXPIRED); } function batch_state_string($state) {