diff --git a/include/staff/templates/ticket-status.tmpl.php b/include/staff/templates/ticket-status.tmpl.php
index c033e0caa8d541b2a9bbed596fb3e8ba2d8c7c80..5e0d84ae3c82be28c5880b5444ffc65ea513a279 100644
--- a/include/staff/templates/ticket-status.tmpl.php
+++ b/include/staff/templates/ticket-status.tmpl.php
@@ -110,9 +110,12 @@ $action = $info['action'] ?: ('#tickets/status/'. $state);
 $(function() {
     // Copy checked tickets to status form.
     $('form#tickets input[name="tids[]"]:checkbox:checked')
-    .clone()
-    .prop('type', 'hidden')
-    .removeAttr('class')
-    .appendTo('form#status');
- });
+    .each(function() {
+        $('<input>')
+        .prop('type', 'hidden')
+        .attr('name', 'tids[]')
+        .val($(this).val())
+        .appendTo('form#status');
+    });
+});
 </script>