mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
Throw 404 error on grid field nested form move-to-parent action,
if no record is found.
This commit is contained in:
parent
8f505659f0
commit
a9b0a70155
@ -288,7 +288,7 @@ class GridFieldNestedForm extends AbstractGridFieldComponent implements
|
||||
$list = $gridField->getList();
|
||||
$id = isset($move['id']) ? (int) $move['id'] : null;
|
||||
if (!$id) {
|
||||
throw new HTTPResponse_Exception('Missing ID', 400);
|
||||
throw new HTTPResponse_Exception('Missing ID', 404);
|
||||
}
|
||||
$to = isset($move['parent']) ? (int)$move['parent'] : null;
|
||||
// should be possible either on parent or child grid field, or nested grid field from parent
|
||||
|
Loading…
x
Reference in New Issue
Block a user