Skip to content

Commit

Permalink
DataGrid: fix inline edit payload when editable callback is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Apr 28, 2020
1 parent d05ecbc commit 34b98e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,12 @@ public function handleEdit($id, $key): void
$newValue = $column->getEditableCallback()($id, $value);

$this->getPresenterInstance()->payload->_datagrid_editable_new_value = $newValue;
$this->getPresenterInstance()->payload->postGet = true;
$this->getPresenterInstance()->payload->url = $this->link('this');

if (!$this->getPresenterInstance()->isControlInvalid(null)) {
$this->getPresenterInstance()->sendPayload();
}
}


Expand Down

0 comments on commit 34b98e1

Please sign in to comment.