Skip to content
Permalink
Browse files

Code style fixes, see #5356

  • Loading branch information
brusch committed Dec 3, 2019
1 parent 270bfc4 commit 6497a74fb4e68aa316ce879f9fa906697adbc815
Showing with 1 addition and 1 deletion.
  1. +1 −1 bundles/AdminBundle/Controller/Admin/Document/DocumentControllerBase.php
@@ -138,7 +138,7 @@ protected function addDataToDocument(Request $request, Model\Document $document)
if ($request->get('data')) {
$data = $this->decodeJson($request->get('data'));
foreach ($data as $name => $value) {
$data = $value['data'];
$data = $value['data'] ?? null;
$type = $value['type'];
$document->setRawElement($name, $type, $data);
}

0 comments on commit 6497a74

Please sign in to comment.
You can’t perform that action at this time.