feat: reset application status to 'new' as admin
This commit is contained in:
@@ -39,6 +39,13 @@ class StatusController extends AbstractController
|
||||
->setComment($statusDto->getComment())
|
||||
->setCommentVisible($statusDto->isCommentVisible())
|
||||
;
|
||||
// remove potential comment when resetting status to 'new'
|
||||
if (Application::STATUS_NEW === $application->getStatus()) {
|
||||
$application
|
||||
->setComment(null)
|
||||
->setCommentVisible(false)
|
||||
;
|
||||
}
|
||||
$this->entityManager->flush();
|
||||
|
||||
$this->eventDispatcher->dispatch(
|
||||
|
||||
Reference in New Issue
Block a user