From 31609f51b3e63451dd13a3e24e1a51ccf650fc5a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 16 Dec 2015 21:37:25 -0600 Subject: [PATCH] queue: Fix crash and inability to mass assign --- include/class.forms.php | 2 +- include/staff/templates/assign.tmpl.php | 2 +- include/staff/templates/queue-tickets.tmpl.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/class.forms.php b/include/class.forms.php index 774485ffc..50b2e6db5 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -213,7 +213,7 @@ class Form { function emitJavascript($options=array()) { // Check if we need to emit javascript - if (!($fid=$this->getId())) + if (!($fid=$this->getFormId())) return; ?> <script type="text/javascript"> diff --git a/include/staff/templates/assign.tmpl.php b/include/staff/templates/assign.tmpl.php index 639460ac4..31bb97395 100644 --- a/include/staff/templates/assign.tmpl.php +++ b/include/staff/templates/assign.tmpl.php @@ -28,7 +28,7 @@ $action = $info[':action'] ?: ('#'); <div style="display:block; margin:5px;"> <form class="mass-action" method="post" name="assign" - id="<?php echo $form->getId(); ?>" + id="<?php echo $form->getFormId(); ?>" action="<?php echo $action; ?>"> <table width="100%"> <?php diff --git a/include/staff/templates/queue-tickets.tmpl.php b/include/staff/templates/queue-tickets.tmpl.php index 3c05576dc..431aba769 100644 --- a/include/staff/templates/queue-tickets.tmpl.php +++ b/include/staff/templates/queue-tickets.tmpl.php @@ -157,7 +157,8 @@ foreach ($columns as $C) { foreach ($tickets as $T) { echo '<tr>'; if ($canManageTickets) { ?> - <td><input type="checkbox" class="ckb" name="ckb[]" /></td> + <td><input type="checkbox" class="ckb" name="tids[]" + value="<?php echo $T['ticket_id']; ?>" /></td> <?php } foreach ($columns as $C) { -- GitLab