Implemented Survey Object

This commit is contained in:
Pierre
2018-04-21 20:24:05 +02:00
parent b00e401ada
commit 23d1761bef
3 changed files with 47 additions and 25 deletions

View File

@ -528,6 +528,10 @@ class postsController {
//Update visibility level
$infos['visibility_level'] = $this::VISIBILITY_LEVELS_API[$infos['visibility_level']];
//Turn survey into API entry (if any)
if($infos["data_survey"] != null)
$infos["data_survey"] = SurveysController::SurveyToAPI($infos["data_survey"]);
//Parse comments if required
if(isset($infos['comments'])){
if($infos['comments'] != null){