diff --git a/include/class.forms.php b/include/class.forms.php
index 774485ffc4a2fa6d0ce28bd4ea1a1fa9e76144e3..50b2e6db5747601afb94b4ae446f89046b4aef6e 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 639460ac42c045840f1ec279de9ec4467357f5cb..31bb97395ff12876563b337986c8b1198ecf08f5 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 3c05576dc3b047dbab6b2995f524034730d7f9d2..431aba7692657ef105f10dd24d49df7d03a90f05 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) {