Skip to content

Commit

Permalink
*8167* De-dupe code
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Mar 18, 2013
1 parent 9966c5f commit da86fec
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,7 @@ function deleteBySubmissionId($submissionId) {

while (!$result->EOF) {
$row = $result->GetRowAssoc(false);
$reviewId = $row['review_id'];

$this->update('DELETE FROM review_form_responses WHERE review_id = ?', $reviewId);
$this->update('DELETE FROM review_assignments WHERE review_id = ?', $reviewId);

$this->deleteById($row['review_id']);
$result->MoveNext();
$returner = true;
}
Expand Down

0 comments on commit da86fec

Please sign in to comment.