- Issue created by @demonde
- 🇫🇷France laurent.lannoy
Same problem ! It appear only when not identified.
Downgrading to 2.1 solves the issue by now. - 🇩🇪Germany jurgenhaas Gottmadingen
This is cause by a logic error in
\Drupal\menu_item_role_access\MenuItemRoleAccessLinkTreeManipulator::menuLinkCheckAccess
which got introduced by this commit: https://git.drupalcode.org/project/menu_item_role_access/-/commit/84f571...The old version did
if ($this->checkUrl($config, $url) && isset($metadata['entity_id'])) {
and if TRUE, did further processing.The new version does
if (!$this->checkUrl($config, $url) && !isset($metadata['entity_id'])) {
and returns if TRUE.The AND in the new needs to be replaced by an OR as the logic got reverted. I'll open an MR to fix that.
- Merge request !8Issue #3465300 by jurgenhaas: Undefined array key "entity_id" → (Merged) created by jurgenhaas
- Status changed to Needs review
3 months ago 10:41am 2 August 2024 - 🇩🇪Germany jurgenhaas Gottmadingen
Please test and review the MR.
Dear maintainers, this would qualify for a bug fix release asap, since this really breaks all sites that updated.
-
LiamPower →
committed b015f233 on 8.x-2.x authored by
jurgenhaas →
Issue #3465300 by jurgenhaas, demonde, larryla, LiamPower: Undefined...
-
LiamPower →
committed b015f233 on 8.x-2.x authored by
jurgenhaas →
- 🇩🇪Germany jurgenhaas Gottmadingen
No worries @LiamPower, and no reason to apologise. Things like this can happen, it's great that you're responding so quickly to this.
- Status changed to Fixed
3 months ago 11:24am 2 August 2024 - 🇬🇧United Kingdom LiamPower
A new release has been created to rectify this. Thank you all for flagging and @jurgenhaas for your patch.
Automatically closed - issue fixed for 2 weeks with no activity.