mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Merge pull request #302 from lpostiglione/patch-1
Fix support for dot notation in GridFieldOrderableRows
This commit is contained in:
commit
719c0ed547
@ -396,7 +396,12 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
}
|
||||
|
||||
// Get records from the `GridFieldEditableColumns` column
|
||||
$data = $request->postVar($grid->getName());
|
||||
$gridFieldName = $grid->getName();
|
||||
if (strpos($gridFieldName, '.') !== false) {
|
||||
$gridFieldName = str_replace('.', '_', $gridFieldName);
|
||||
}
|
||||
|
||||
$data = $request->postVar($gridFieldName);
|
||||
$sortedIDs = $this->getSortedIDs($data);
|
||||
if (!$this->executeReorder($grid, $sortedIDs)) {
|
||||
$this->httpError(400);
|
||||
|
Loading…
x
Reference in New Issue
Block a user