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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user