If there is only one bundle available, leave the default widget

Created on 20 June 2025, 2 months ago

Problem/Motivation

In some cases there is only one bundle available (perhaps an alter in place). It would be great if the form then just leaves the default parent widget if there is no filtering available.

Steps to reproduce

Easiest way without an alter is just to enable a single bundle.

Proposed resolution

  1. Check bundle count
  2. Revert to no filter if count <= 1

Remaining tasks

MR

User interface changes

Parent widget shown if no filters are available

API changes

N/A

Data model changes

N/A

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom scott_euser

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

Merge Requests

Comments & Activities

  • Issue created by @scott_euser
  • Pipeline finished with Failed
    2 months ago
    Total: 149s
    #526952
  • Pipeline finished with Success
    2 months ago
    Total: 145s
    #526965
  • Pipeline finished with Canceled
    2 months ago
    Total: 80s
    #526988
  • Pipeline finished with Canceled
    2 months ago
    Total: 125s
    #526989
  • Pipeline finished with Failed
    2 months ago
    Total: 155s
    #526991
  • Pipeline finished with Failed
    2 months ago
    Total: 291s
    #527006
  • Pipeline finished with Failed
    2 months ago
    Total: 180s
    #527028
  • Pipeline finished with Canceled
    2 months ago
    Total: 88s
    #527032
  • Pipeline finished with Failed
    2 months ago
    Total: 139s
    #527034
  • Pipeline finished with Failed
    2 months ago
    Total: 152s
    #527046
  • Pipeline finished with Canceled
    2 months ago
    Total: 75s
    #527795
  • Pipeline finished with Failed
    2 months ago
    Total: 147s
    #527796
  • Pipeline finished with Success
    2 months ago
    Total: 130s
    #527800
  • 🇬🇧United Kingdom scott_euser

    Sorry for the commit guessing! Running a big migration script locally, didn't want to interrupt it with ddev router. This is now ready for review + has test coverage.

    If only a single bundle is selected, the widget reverts to the default Core autocomplete. In addition to responding to any sort of alter, this has the additional benefit of making it easier to convert an existing site because autocomplete filters can just default to this widget with a sort of find and replace in form display config.

  • 🇬🇧United Kingdom dahousecat

    Great suggestion for improvement and good implementation.
    Approved and merged.

  • 🇬🇧United Kingdom scott_euser

    Great thank you!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024