Skip to content

Commit

Permalink
Update survey status if complete
Browse files Browse the repository at this point in the history
  • Loading branch information
victori444 committed Nov 21, 2024
1 parent 64c27ae commit 0ccde6a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions php/libraries/NDB_BVL_InstrumentStatus.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ccde6a

Please sign in to comment.