fix comment
This commit is contained in:
1 parent
4ae43ff2da
commit
b5013e4ff9
1 file changed
+3
-1
@@ -125,7 +125,9 @@ class CommentController extends ApiController
|
||||
|
||||
$request['user_id'] = $user_id;
|
||||
|
||||
$model->load($request, '');
|
||||
$put = array_diff($request, [null, '']);
|
||||
|
||||
$model->load($put, '');
|
||||
|
||||
if (!$model->save()) {
|
||||
return $model->errors;
|
||||
|
||||
Reference in new issue
Block a user