Skip to content

Browser field search doesn't work for nested modules with $showOnlyParentItemsInBrowsers set to false #2837

Description

@cathal-maverick

Description

When searching in a browser field for a nested module with $showOnlyParentItemsInBrowsers set to false, all instances of the module are returned instead of just the ones containing the search string

Steps to reproduce

  • Create a nested module
  • Set $showOnlyParentItemsInBrowsers to false on the module controller
  • Create a browser field referencing the nested module
  • Attempt to search in the browser field modal

Expected result

The search results are restricted to just items containing the search term

Actual result

The search results show all items

Versions

Twill version: 3.5.3
Laravel version: 11.51
PHP version: 8.4
Database engine: Tested on SQLite & MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions