answer directly to status SENDED

This commit is contained in:
2019-08-08 15:43:14 +02:00
parent 48240d5cab
commit b914b0ea96
@@ -89,7 +89,7 @@ class AnswerController extends FOSRestController
$usr = $this->getUser();
if ($usr !== null){
$answer = new Answer($usr, null, 'DRAFT');
$answer = new Answer($usr, null, 'SENDED');
$em = $this->getDoctrine()->getManager();
$mediaId = htmlspecialchars($request->get('mediaId'));