fix: [singleView:jsonField] Render only first value

pull/67/head
mokaddem 2021-06-28 11:48:39 +02:00
parent 39f44471e4
commit 7add89aa9e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
$string = $field['raw'];
} else {
$value = Cake\Utility\Hash::extract($data, $field['path']);
$string = count($value) == 0 ? '' : $value;
$string = count($value) == 0 ? '' : $value[0];
}
echo sprintf(
'<div class="json_container_%s"></div>',