diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt
index af9553852d..d9d52357ad 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt
@@ -23,45 +23,45 @@ to add to Batch [% batch_id %]
-
diff --git a/labels/label-item-search.pl b/labels/label-item-search.pl
index 6d7db6f519..b59cbc1236 100755
--- a/labels/label-item-search.pl
+++ b/labels/label-item-search.pl
@@ -225,7 +225,6 @@ if ($show_results) {
result_set=> \@results_set,
batch_id => $batch_id,
type => $type,
- idx => $idx,
ccl_query => $ccl_query,
);
}
@@ -262,5 +261,7 @@ else {
}
+$template->param( idx => $idx );
+
# Print the page
output_html_with_http_headers $query, $cookie, $template->output;