Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

In ticket list view show all status except closed by default

  • Robert and Karen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 10 months ago #116362 by Robert and Karen
Hi Tuan,

Can you point us to the file that sets the default display of the ticket list to only show New and Pending as we want to show every status that is not closed by default. (we have 5 statuses) And then filter for individual statuses or closed if required.

thanks

Rob

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #116363 by Tuan Pham Ngoc
As discussed via support tickets system, the file need to be modified is administrator/components/com_helpdeskpro/Model/Tickets.php. Change the code from:
Code:
if ($role == 'admin' || $role == 'manager' || $role == 'staff') { //Show open and pending tickets to admins, managers and staffs by default $query->where('(tbl.status_id=' . (int) $config->new_ticket_status_id . ' OR tbl.status_id=' . (int) $config->ticket_status_when_customer_add_comment . ')'); } else { //Show open tickets and require feedback tickets to customers $query->where('tbl.status_id != ' . (int) $config->closed_ticket_status); }

To
Code:
$query->where('tbl.status_id != ' . (int) $config->closed_ticket_status);

And it will work as expected

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc