From a2ef376d44ba4450b7bae5f90269b374495eb227 Mon Sep 17 00:00:00 2001 From: Remigijus Kiminas Date: Mon, 13 Dec 2021 07:55:17 -0500 Subject: [PATCH] Add support for user_id and dep_id --- lhc_web/modules/lhrestapi/surveychat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }