From 4cef26a2c862902c96a8dc6c950fa7481017eee7 Mon Sep 17 00:00:00 2001 From: Jonas Rittershofer Date: Wed, 13 May 2020 16:17:41 +0200 Subject: [PATCH] Fix newQuestions console error mandatory null Signed-off-by: Jonas Rittershofer --- lib/Controller/ApiController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index a37f07f..be4a48b 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -307,6 +307,7 @@ class ApiController extends Controller { $question->setOrder($questionOrder); $question->setType($type); $question->setText($text); + $question->setMandatory(false); $question = $this->questionMapper->insert($question);