diff --git a/php/libraries/NDB_BVL_InstrumentStatus.class.inc b/php/libraries/NDB_BVL_InstrumentStatus.class.inc index 1c97bf37258..6c87c85d676 100644 --- a/php/libraries/NDB_BVL_InstrumentStatus.class.inc +++ b/php/libraries/NDB_BVL_InstrumentStatus.class.inc @@ -201,12 +201,6 @@ class NDB_BVL_InstrumentStatus ['CommentID' => $this->_commentID] ); - $GLOBALS['DB']->update( - 'participant_accounts', - ['Status' => $status], - ['CommentID' => $this->_commentID] - ); - $this->select($this->_commentID); // Run the ConflictDetector if the new status is Complete @@ -247,6 +241,12 @@ class NDB_BVL_InstrumentStatus ConflictDetector::recordUnresolvedConflicts($diff); } } + + $GLOBALS['DB']->update( + 'participant_accounts', + ['Status' => $status], + ['CommentID' => $this->_commentID] + ); } // Remove conflicts for SDE & DDE form from the