You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have extended shallowAugmentedArrayKeys like the following snippet, the augmentation does not work on the "link_internal_related" field, which is a replicator with an entry field in it. "link_internal_related" returns the full dataset of the entry and not only the keys specified in shallowAugmentedArrayKeys;
class CustomEntry extends Entry
{
protected function shallowAugmentedArrayKeys()
{
return [
'id',
'title',
'url',
'permalink',
'api_url',
'link_internal_related',
];
}
}
How to Reproduce
Extend shallowAugmentedArrayKeys with fields, that contain relations.
Open the API url of the entry, to see the data
The link_internal_related data contains all the data of the related entry instead of the keys specified in shallowAugmentedArrayKeys
Extra Detail
Shared with Jesse in Discord
Environment
Statamic version: 3.0.0 and up I guess
Tested with 3.0.2, 3.0.6 and 3.0.23
The text was updated successfully, but these errors were encountered:
Bug Description
If you have extended
shallowAugmentedArrayKeys
like the following snippet, the augmentation does not work on the "link_internal_related" field, which is a replicator with an entry field in it. "link_internal_related" returns the full dataset of the entry and not only the keys specified in shallowAugmentedArrayKeys;How to Reproduce
Extra Detail
Shared with Jesse in Discord
Environment
Statamic version: 3.0.0 and up I guess
Tested with 3.0.2, 3.0.6 and 3.0.23
The text was updated successfully, but these errors were encountered: