diff --git a/admin-dev/themes/default/template/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/helpers/list/list_footer.tpl index d0d8bd7eb..9fabbe9f6 100644 --- a/admin-dev/themes/default/template/helpers/list/list_footer.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_footer.tpl @@ -56,7 +56,7 @@ {/if} - {if !$simple_header && $list_total > 20} + {if !$simple_header && $list_total > $pagination[0]}
{* Choose number of results per page *} @@ -73,7 +73,7 @@ {/foreach} / {$list_total} {l s='result(s)'} - +
diff --git a/classes/helper/HelperList.php b/classes/helper/HelperList.php index 57166b2fe..83f4a4a94 100644 --- a/classes/helper/HelperList.php +++ b/classes/helper/HelperList.php @@ -642,8 +642,12 @@ class HelperListCore extends Helper */ public function displayListFooter() { + if (!isset($this->list_id)) + $this->list_id = $this->table; + $this->footer_tpl->assign(array_merge($this->tpl_vars, array( - 'current' => $this->currentIndex + 'current' => $this->currentIndex, + 'list_id' => $this->list_id ))); return $this->footer_tpl->fetch(); }