diff options
Diffstat (limited to 'core/DataTable/Filter/Sort.php')
-rw-r--r-- | core/DataTable/Filter/Sort.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/DataTable/Filter/Sort.php b/core/DataTable/Filter/Sort.php index 222a2ca5d8..077a09cbca 100644 --- a/core/DataTable/Filter/Sort.php +++ b/core/DataTable/Filter/Sort.php @@ -20,13 +20,17 @@ class Piwik_DataTable_Filter_Sort extends Piwik_DataTable_Filter protected $columnToSort; protected $order; - public function __construct( $table, $columnToSort, $order = 'desc', $naturalSort = false ) + public function __construct( $table, $columnToSort, $order = 'desc', $naturalSort = false, $recursiveSort = false ) { parent::__construct($table); if(empty($columnToSort)) { return; } + if($recursiveSort) + { + $table->enableRecursiveSort(); + } $this->columnToSort = $columnToSort; $this->naturalSort = $naturalSort; $this->setOrder($order); |