}
} else if (study.getTransientDescription().equals(StudyStatus.PUBLISHED)) {
// check the status is ready before change to publish:
if (!submission.isReady() && !submission.isPublished()) {
// Undo the change:
study.resetTransientDescription();
errorsList.add("Submission with ID: " + submission.getId()
+ " could not be updated.");
} else {