Assigned To Field Not Setting Default to Current User

Suitecrm 8.8
I’ve noticed that the “Assigned To” field is not being automatically set to the current logged-in user by default when creating a new record in some modules.

I am facing the same issue but in the logic hook.

It assign random user to the case module.

$case->assigned_user_id = $current_user->id;