diff --git a/templates/table/search/options_zoom.phtml b/templates/table/search/options_zoom.phtml
deleted file mode 100644
index d288db040d..0000000000
--- a/templates/table/search/options_zoom.phtml
+++ /dev/null
@@ -1,48 +0,0 @@
-
diff --git a/templates/table/search/options_zoom.twig b/templates/table/search/options_zoom.twig
new file mode 100644
index 0000000000..5888ef7a4d
--- /dev/null
+++ b/templates/table/search/options_zoom.twig
@@ -0,0 +1,43 @@
+
diff --git a/templates/table/search/selection_form.phtml b/templates/table/search/selection_form.phtml
index f6c24082c9..fed4060d75 100644
--- a/templates/table/search/selection_form.phtml
+++ b/templates/table/search/selection_form.phtml
@@ -42,8 +42,11 @@ switch ($searchType) {
?>
= PhpMyAdmin\Template::get('table/search/options_zoom')
->render(array(
- 'dataLabel' => $dataLabel,
- 'columnNames' => $columnNames
+ 'data_label' => $dataLabel,
+ 'column_names' => $columnNames,
+ 'max_plot_limit' => ((! empty($_POST['maxPlotLimit']))
+ ? intval($_POST['maxPlotLimit'])
+ : intval($GLOBALS['cfg']['maxRowPlotLimit'])),
)) ?>