Skip to content

Commit a0f0326

Browse files
committed
Merge pull request #106 from kinglozzer/patch-1
Add extension hook after re-ordering items
2 parents a568039 + 91b3550 commit a0f0326

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

code/GridFieldOrderableRows.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class GridFieldOrderableRows extends RequestHandler implements
4545
* @param string $sortField
4646
*/
4747
public function __construct($sortField = 'Sort') {
48+
parent::__construct();
4849
$this->sortField = $sortField;
4950
}
5051

@@ -351,6 +352,8 @@ protected function reorderItems($list, array $values, array $order) {
351352
));
352353
}
353354
}
355+
356+
$this->extend('onAfterReorderItems', $list);
354357
}
355358

356359
protected function populateSortValues(DataList $list) {

0 commit comments

Comments
 (0)