Skip to content

Commit

Permalink
#5885 fixed displaying error on date comparison validation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Apr 23, 2024
1 parent b4787a7 commit ca28c9a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,16 @@ public function updateReviewer($args, $request)
// Form handling
$reviewerForm = new $formClassName($this->getSubmission(), $this->getReviewRound());
$reviewerForm->readInputData();

if ($reviewerForm->validate()) {
$reviewAssignment = $reviewerForm->execute();
$json = DAO::getDataChangedEvent($reviewAssignment->getId());
$json->setGlobalEvent('update:decisions');
return $json;
} else {
// There was an error, redisplay the form
return new JSONMessage(true, $reviewerForm->fetch($request));
}

// There was an error, redisplay the form
return new JSONMessage(false);
}

/**
Expand Down

0 comments on commit ca28c9a

Please sign in to comment.