Menu link field required setting is ineffective

Created on 25 March 2024, 3 months ago
Updated 29 April 2024, 2 months ago

Problem/Motivation

The required option from core's field ui and config doesnt currently do anything.

Proposed resolution

When a field is required, a menu item is always created. The field checkbox cannot be unchecked.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @dpi
  • Merge request !12Resolve #3435925 "Menu link field required" β†’ (Open) created by dpi
  • Open on Drupal.org β†’
    Core: 10.2.1 + Environment: PHP 8.1 & MySQL 8
    last update 3 months ago
    Waiting for branch to pass
  • Issue was unassigned.
  • Status changed to Needs review 3 months ago
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia
  • πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

    Also adding additional tweaks:

    Makes menu title and menu select required when field is required.

    Tweaks for field-level Default menu for new links so a new '- None -' option is available. When the field is required, this effectively forces the user to make a conscious decision for which menu the link is placed in. I've needed to adjust the fallback behaviour to not use 'main' when the Default menu for new links value is empty. I think this existing/old behaviour was a safety fallback anyway.

  • Open on Drupal.org β†’
    Core: 10.2.1 + Environment: PHP 8.1 & MySQL 8
    last update 2 months ago
    Waiting for branch to pass
  • Open on Drupal.org β†’
    Core: 10.2.1 + Environment: PHP 8.1 & MySQL 8
    last update about 1 month ago
    Waiting for branch to pass
Production build 0.69.0 2024