Widget\Limiter: show "all"

In case we pass limit=0 we show this, still unsure whether we should
provide a link for "showing all" - might really hurt with millions of
history rows.
This commit is contained in:
Thomas Gelf 2014-06-25 20:39:10 +02:00
parent 59dd80ed32
commit 10d1520711
1 changed files with 3 additions and 1 deletions

View File

@ -51,8 +51,10 @@ class Limiter extends AbstractWidget
50 => '50',
100 => '100',
500 => '500'
// 0 => t('all')
);
if ($currentLimit === 0) {
$availableLimits[0] = t('all');
}
// if ($this->pages === 1 && $currentLimit === 10) return '';