Fixes not updating list record count immediately

This commit is contained in:
Samuel Georges 2016-06-10 07:43:21 +10:00
parent 519eaad04c
commit 1a3bf59301
1 changed files with 3 additions and 2 deletions

View File

@ -1247,11 +1247,12 @@ class Lists extends WidgetBase
{ {
if (($visibleColumns = post('visible_columns')) && is_array($visibleColumns)) { if (($visibleColumns = post('visible_columns')) && is_array($visibleColumns)) {
$this->columnOverride = array_keys($visibleColumns); $this->columnOverride = array_keys($visibleColumns);
$this->putSession('visible', array_keys($visibleColumns)); $this->putSession('visible', $this->columnOverride);
} }
$this->recordsPerPage = post('records_per_page', $this->recordsPerPage);
$this->putSession('order', post('column_order')); $this->putSession('order', post('column_order'));
$this->putSession('per_page', post('records_per_page', $this->recordsPerPage)); $this->putSession('per_page', $this->recordsPerPage);
return $this->onRefresh(); return $this->onRefresh();
} }