From 4a0a488ff69b0b1b93cd8590e198c9c17ef73366 Mon Sep 17 00:00:00 2001 From: datune Date: Wed, 4 Oct 2017 22:04:12 +0200 Subject: [PATCH] Account for NestedTree Trait setting (#3143) * Account for NestedTree Trait setting See https://github.com/rainlab/blog-plugin/issues/338. The Lists Widget did not account for the NestedTree setting. * Update Lists.php --- modules/backend/widgets/Lists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index 614cb19ef..0e42bbb80 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -486,7 +486,7 @@ class Lists extends WidgetBase /* * Apply sorting */ - if ($sortColumn = $this->getSortColumn()) { + if (($sortColumn = $this->getSortColumn()) && !$this->showTree) { if (($column = array_get($this->allColumns, $sortColumn)) && $column->valueFrom) { $sortColumn = $this->isColumnPivot($column) ? 'pivot_' . $column->valueFrom