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
I believe there was a regression in #11046, that broke "standard" extension registration. I would expect this to have broken other file types inside the App/* directories, but have confirmed it on Dictionaries. Specifically, see this commit.
When reverting that code (ie, before that PR was merged), DD'ing the $fqcn inside registerAppExtensions yields something valid and expected, like:
App\Dictionaries\SpecialMap
But with that PR, it breaks the fully-qualified name and returns an invalid path:
App\C:\www\my-website\app\Dictionaries\SpecialMap
How to reproduce
Install latest Statamic
Setup a Dictionary (or presumably any of the standard extension classes)
Append the field as a config on any fieldtype:
Text::appendConfigFields([
'external_field' => [
'type' => 'dictionary',
'dictionary' => 'special_map',
'instructions' => 'Corresponding field, as labeled on the associated object.',
'max_items' => 1,
],
]);
Try to open a blueprint field of that type, inspect request for error (exception thrown in DictionaryFields.php around line 57)
Bug description
I believe there was a regression in #11046, that broke "standard" extension registration. I would expect this to have broken other file types inside the
App/*
directories, but have confirmed it on Dictionaries. Specifically, see this commit.When reverting that code (ie, before that PR was merged), DD'ing the
$fqcn
insideregisterAppExtensions
yields something valid and expected, like:But with that PR, it breaks the fully-qualified name and returns an invalid path:
How to reproduce
DictionaryFields.php
around line 57)Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
On Windows 10, using Herd.
The text was updated successfully, but these errors were encountered: