diff --git a/lhc_web/modules/lhrestapi/surveychat.php b/lhc_web/modules/lhrestapi/surveychat.php index 75c884b3aa..f2f85fe0a9 100644 --- a/lhc_web/modules/lhrestapi/surveychat.php +++ b/lhc_web/modules/lhrestapi/surveychat.php @@ -30,6 +30,7 @@ $presentSurvey->chat_id = $chat->id; $presentSurvey->survey_id = $survey->id; $presentSurvey->dep_id = $chat->dep_id; + $presentSurvey->user_id = $chat->user_id; $presentSurvey->ftime = time(); } @@ -45,7 +46,7 @@ } foreach ($requestBody as $attr => $value) { - if (in_array($attr,['ftime','status'])) { + if (in_array($attr,['ftime','status','user_id','dep_id'])) { $presentSurvey->{$attr} = $value; } }