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
This commit is contained in:
parent
263200fd7b
commit
4a0a488ff6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue