From 1a3bf59301ba64bd4fc8a84fde8c481f70be3842 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Fri, 10 Jun 2016 07:43:21 +1000 Subject: [PATCH] Fixes not updating list record count immediately --- modules/backend/widgets/Lists.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index 43fe14d03..9ac5f2364 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -1247,11 +1247,12 @@ class Lists extends WidgetBase { if (($visibleColumns = post('visible_columns')) && is_array($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('per_page', post('records_per_page', $this->recordsPerPage)); + $this->putSession('per_page', $this->recordsPerPage); return $this->onRefresh(); }