From c1dcc6255914d3fd216165579e0a067d6f816803 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Sun, 7 Jul 2019 13:05:18 +0800 Subject: [PATCH] Increment column count when tree is shown Fix centering of no record message in lists when tree is enabled. --- modules/backend/widgets/Lists.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index 01bc5237a..e1c07cde1 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -936,6 +936,10 @@ class Lists extends WidgetBase $total++; } + if ($this->showTree) { + $total++; + } + return $total; }