Skip to content

Commit f60c43e

Browse files
committed
Fix sort behavior when defaulting field paths
1 parent ddb1823 commit f60c43e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ All notable changes to `omines\datatables-bundle` will be documented in this fil
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
6+
### Added
7+
- Implement persist_state parameter to automate table state persistence
8+
69
### Fixed
710
- Fixed exception during template rendering when enabling searching serverside
11+
- Fixed sort behavior when defaulting field detection
812

913
## [0.1.1] - 2017-12-03
1014
### Fixed

src/DataTableState.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ private function handleOrderBy(ParameterBag $parameters)
108108
$this->orderBy = [];
109109
foreach ($parameters->get('order', []) as $order) {
110110
$column = $this->getDataTable()->getColumn((int) $order['column']);
111-
112-
if ($column->isOrderable()) {
113-
$this->addOrderBy($column, $order['dir']);
114-
}
111+
$this->addOrderBy($column, $order['dir']);
115112
}
116113
}
117114
}

0 commit comments

Comments
 (0)