Jump to content

Hide closed tickets in the client area


dancome89

Recommended Posts

Hi

 

There is no setup for this option you need to modify the template file

 

look for supportticketslist.tpl in your template folder

 

search for this code

 

{foreach key=num item=ticket from=$tickets}
       <tr>
           <td>{$ticket.date}</td>
           <td>{$ticket.department}</td>
           <td><div align="left"><a href="viewticket.php?tid={$ticket.tid}&c={$ticket.c}"><img src="images/article.gif" alt="" border="0" /> {if $ticket.unread}<strong>{/if}#{$ticket.tid} - {$ticket.subject}{if $ticket.unread}</strong>{/if}</a></div></td>
           <td>{$ticket.status}</td>
           <td>{$ticket.lastreply}</td>
           <td class="textcenter"><a href="viewticket.php?tid={$ticket.tid}&c={$ticket.c}" class="btn btn-inverse">{$LANG.supportticketsviewticket}</a></td>
       </tr>
{foreachelse}

 

replace it with this code

 

{foreach key=num item=ticket from=$tickets}
       {if $ticket.status != '<span style="color:#888888">Closed</span>'}
       <tr>
           <td>{$ticket.date}</td>
           <td>{$ticket.department}</td>
           <td><div align="left"><a href="viewticket.php?tid={$ticket.tid}&c={$ticket.c}"><img src="images/article.gif" alt="" border="0" /> {if $ticket.unread}<strong>{/if}#{$ticket.tid} - {$ticket.subject}{if $ticket.unread}</strong>{/if}</a></div></td>
           <td>{$ticket.status}</td>
           <td>{$ticket.lastreply}</td>
           <td class="textcenter"><a href="viewticket.php?tid={$ticket.tid}&c={$ticket.c}" class="btn btn-inverse">{$LANG.supportticketsviewticket}</a></td>
       </tr>
       {/if}
{foreachelse}

 

it will hide all the closed tickets

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated