From 993dbe615834f7fbf78b2fffb1b1bd9bdc5427fd Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 30 Oct 2015 14:59:06 -0500
Subject: [PATCH] queue: oops: Add checkboxes back to ticket listing

---
 include/staff/templates/queue-tickets.tmpl.php | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/include/staff/templates/queue-tickets.tmpl.php b/include/staff/templates/queue-tickets.tmpl.php
index e0ed19817..0d999886a 100644
--- a/include/staff/templates/queue-tickets.tmpl.php
+++ b/include/staff/templates/queue-tickets.tmpl.php
@@ -115,6 +115,11 @@ return false;">
   <thead>
     <tr>
 <?php
+$canManageTickets = $thisstaff->canManageTickets();
+if ($canManageTickets) { ?>
+        <th style="width:12px"></th>
+<?php 
+}
 foreach ($columns as $C) {
     echo sprintf('<th width="%s">%s</th>', $C->getWidth(),
         Format::htmlchars($C->getHeading()));
@@ -125,6 +130,10 @@ foreach ($columns as $C) {
 <?php
 foreach ($tickets as $T) {
     echo '<tr>';
+    if ($canManageTickets) { ?>
+        <td><input type="checkbox" name="ckb[]" /></td>
+<?php 
+    }
     foreach ($columns as $C) {
         echo '<td class="offset">';
         echo $C->render($T);
@@ -137,8 +146,8 @@ foreach ($tickets as $T) {
   <tfoot>
     <tr>
       <td colspan="7">
-        <?php if($total && $thisstaff->canManageTickets()){ ?>
-        <?php echo __('Select');?>:&nbsp;
+        <?php if ($total && $canManageTickets) {
+        echo __('Select');?>:&nbsp;
         <a id="selectAll" href="#ckb"><?php echo __('All');?></a>&nbsp;&nbsp;
         <a id="selectNone" href="#ckb"><?php echo __('None');?></a>&nbsp;&nbsp;
         <a id="selectToggle" href="#ckb"><?php echo __('Toggle');?></a>&nbsp;&nbsp;
-- 
GitLab