fix: [genericElement:singleView] Allow displaying object not included in an array
parent
7e47c48ef3
commit
835dbd88c8
|
@ -4,7 +4,7 @@
|
|||
$string = $field['raw'];
|
||||
} else {
|
||||
$value = Cake\Utility\Hash::extract($data, $field['path']);
|
||||
$string = empty($value[0]) ? '' : $value[0];
|
||||
$string = count($value) == 0 ? '' : $value;
|
||||
}
|
||||
echo sprintf(
|
||||
'<div class="json_container_%s"></div>',
|
||||
|
|
Loading…
Reference in New Issue