I have changed some code in
include\staff\templates\tickets.tmpl.php
line 85
<a class="green button action-button" href="tickets.php?a=open&uid=<?php echo $user->getId(); ?>&UsersPage=100">
and
scp/tickets.php
line 497
$userPage= is_numeric($_GET['UsersPage'] ) ;
if($userPage==100) {
$userIdd =$_GET['uid'] ;
}
else
{
$userId = $thisstaff->getEmail();
$user = User::lookupByEmail($userId);
if ($user) {
$userIdd = $user->getId();
}
else {
// Handle the case where the user is not found
$userIdd = null;
}
}
$hrefnull = ($userIdd) ? "tickets.php?a=open&uid=$userIdd" : "tickets.php?a=open";
if ($thisstaff->hasPerm(Ticket:😛ERM_CREATE, false)) {
$nav->addSubMenu(array('desc'=>__('New Ticket'),
'title'=> __('Open a New Ticket'),
'href' => $hrefnull,
'iconclass'=>'newTicket',
'id' => 'new-ticket'),
(isset($REQUEST['a']) && $REQUEST['a']=='open'));
}