User-Role in ticket reply Not working correctly
-
hi,
I founded that user_role not set correctly in ticket reply on this path:
awesome-support->themes->default->partials->ticket-reply.php Line:23
because in someway default $user_roles (array) not indexed from 0 !
for example:["roles"]=> array(2) { [1]=> string(13) "administrator" [2]=> string(8) "um_admin" }
so your code:
$user_role = $user->roles[0];
return empty.i think it’s better to use this code to get first user role:
$user_role = reset( $user->roles );
or any other way
Thanks! ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User-Role in ticket reply Not working correctly’ is closed to new replies.