hi
Thanks for all your help. I was not working all these days due to some health problem. Back at work and stuck up here. I also have to include print ticket which i did it seeing your forum help. It was very helpful.
I am unable to achieve this. ie only reassign tab for some groups if ticket is assigned to them. Please spare time to look in to this. I am not knowing what mistake I am doing:
please see the o/p from groups table.
mysql> select group_id, group_name from it_groups;
+----------+--------------------+
| group_id | group_name |
+----------+--------------------+
| 1 | Admins |
| 4 | alldepthead |
| 5 | civildeptstaff |
| 6 | electdeptstaff |
| 7 | elect-acdeptstaff |
| 8 | workshopstaff |
| 9 | individualdepthead |
| 10 | ltsstaff |
+----------+--------------------+
8 rows in set (0.00 sec)
------------------
The modified code ..(presently taken only civildeptstaff ie group id =5)
//When the ticket is assigned Allow assignee, admin or ANY dept manager to reassign the ticket.
if((!$ticket->isAssigned() || $thisuser->isadmin() || $thisuser->isManager() || $thisuser->getId()==$ticket->getStaffId())&& $thisuser->getGroupId()==5) {
?>
<?=$staff?'Re Assign Ticket':'Assign to Staff'?>
----------------
attaching the o/p after the above code modification.
Please help to solve this problem. Thanks
revmon94