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