1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(fields): use registry item id instead of key

This commit is contained in:
Awilum
2022-04-26 14:22:49 +03:00
parent 67547de76a
commit cff9590fa4

View File

@@ -29,7 +29,7 @@ emitter()->addListener('onEntriesFetchSingleHasResult', static function (): void
// Modify fetch.
foreach (entries()->registry()->get('methods.fetch.result.registry.get') as $field => $body) {
$data = collection($data)->merge(collection($data)->set($field, registry()->get($body['key'],
$data = collection($data)->merge(collection($data)->set($field, registry()->get($body['id'],
isset($body['default']) ?
$body['default'] :
[]))->toArray())->toArray();