Describe the bug
When editing an entry, the suggestions for any fields in partials are not preloaded.
To Reproduce
Create a collection with a fieldset.
In that fieldset, use at least one partial.
In the partial fieldset, use a suggest-like field type, e.g. 'collection'.
While editing an entry, use the inspector in your browser to find out that there are no preloaded suggestions in JavaScript and the suggestions are loaded by xhr / ajax.
Expected behavior
Suggestions for fields in partials should be preloaded too.
Environment details (please complete the following information):
Statamic Version 2.11.8
Fix
FIX: in statamic/core/CP/Publish/PreloadsSuggestions.php line 15 should read
$this->getSuggestFields($fieldset->inlinedFields())
instead of
$this->getSuggestFields($fieldset->fields())
Describe the bug When editing an entry, the suggestions for any fields in partials are not preloaded.
To Reproduce
Expected behavior Suggestions for fields in partials should be preloaded too.
Environment details (please complete the following information):
Fix FIX: in statamic/core/CP/Publish/PreloadsSuggestions.php line 15 should read
$this->getSuggestFields($fieldset->inlinedFields())
instead of$this->getSuggestFields($fieldset->fields())