Commit a38c54a9 authored by sylvieg's avatar sylvieg

[FIX]groups: fix maxRecords+ show find box in any case

parent 66cd9afe
......@@ -22,9 +22,7 @@
{* ----------------------- tab with list --------------------------------------- *}
<h2>{tr}List of existing groups{/tr}</h2>
{if $cant_pages > $maxRecords }
{include file='find.tpl' find_show_num_rows='y'}
{/if}
{include file='find.tpl' find_show_num_rows='y'}
{if $cant_pages > $maxRecords or !empty($initial) or !empty($find)}
{initials_filter_links}
......
......@@ -124,12 +124,12 @@ if (isset($_REQUEST['clean'])) {
$cachelib->invalidate('grouplist');
$cachelib->invalidate('groupIdlist');
}
if (!isset($_REQUEST["numrows"])) {
if (!isset($_REQUEST['maxRecords'])) {
$numrows = $maxRecords;
} else {
$numrows = $_REQUEST["numrows"];
$numrows = $_REQUEST['maxRecords'];
}
$smarty->assign_by_ref('numrows', $numrows);
$smarty->assign_by_ref('maxRecords', $numrows);
if (!isset($_REQUEST["sort_mode"])) {
$sort_mode = 'groupName_asc';
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment