use correct obj ClassName in RestfulServer::updateDataObject

This commit is contained in:
Sander Hagenaars 2019-07-03 10:40:44 +02:00
parent e320189ec2
commit d27156e890

View File

@ -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) {