Hi
I am new in this forum and I want thank everybody work on osticket because I really love it but there is some problems I want you help me.
in SCP (assign to staff) tab there is all staff members I don't like this and I want only appears the current staff logged in and the current staff logged in can not choose another staff member how I do this?
for your information I already update the following
include/staff/viewticket.inc.php
I update only the following:
before it was:
and now:
before it was:
$selected = ($info==$staffId)?'selected':''; ?>
and now:
$selected = ($thisuser->getid()==$staffId)?'selected':''; ?>
<select disabled="disabled" id="staffId" name="staffId">
<option value="0" selected="selected">-Select Staff Member.-</option>
<?
//TODO: make sure the user's group is also active....DO a join.
$sql=' SELECT staff_id,CONCAT_WS(", ",lastname,firstname) as name FROM '.STAFF_TABLE.
' WHERE isactive=1 AND onvacation=0 ';
if($ticket->isAssigned())
$sql.=' AND staff_id!='.db_input($ticket->getStaffId());
$depts= db_query($sql.' ORDER BY lastname,firstname ');
while (list($staffId,$staffName) = db_fetch_row($depts)){
$selected = ($thisuser->getid()==$staffId)?'selected':''; ?>
it's working fine but when I press (assign) it's showing me error can not assigne please help.