- Issue created by @mingsong
- π¦πΊAustralia mingsong π¦πΊ
The PHPUnit test to expose this bug has been done within the merge request.
- π¨π¦Canada Charlie ChX Negyesi πCanada
To help others a little when trying to figure out:
MenuLinkDefaultForm::buildConfigurationForm()
is not guilty. It rightly presumes menu links have providers because in the default storage they do have a default, it'ssystem
, it's coming fromMenuTreeStorage::schemaDefinition()
and the defaults in there are, not sure why but are merged into the link inMenuTreeStorage::preSave()
.No, the empty provider is coming from the
MenuLinkFieldDefinitions::$defaults
trait, why is that empty when after save it becomessystem
anyways. If I were to suggest anything I would suggest changing this tosystem
as well -- but I don't do so. This is just an idea. Please continue not crediting me.And if I were curious, I would certainly wonder how come this error has not happened before -- even the earliest versions of
ModuleHandler::getName
would fatalreturn $module_data[$module]->info['name'];
. What has changed? Now that we have a test (wonderful!) perhaps someone wants to git bisect.