mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
use correct obj ClassName in RestfulServer::updateDataObject
This commit is contained in:
parent
e320189ec2
commit
d27156e890
@ -672,7 +672,7 @@ class RestfulServer extends Controller
|
||||
$rawdata = $this->request->postVars();
|
||||
}
|
||||
|
||||
$className = $this->unsanitiseClassName($this->request->param('ClassName'));
|
||||
$className = $obj->ClassName;
|
||||
// update any aliased field names
|
||||
$data = [];
|
||||
foreach ($rawdata as $key => $value) {
|
||||
|
Loading…
Reference in New Issue
Block a user