Fix nick_name is null error when an admin tries to update a guest comment

https://xetown.com/questions/1788734
This commit is contained in:
Kijin Sung 2023-10-04 20:58:23 +09:00
parent f589737dcf
commit 6228dca221

View file

@ -961,6 +961,7 @@ class CommentController extends Comment
}
else
{
$obj->nick_name = $obj->nick_name ?? $source_obj->get('nick_name');
unset($obj->member_srl);
unset($obj->user_id);
}