craftcms / craftcms/cms

[5.x]: Field of type "Entries" fails when opened in a modal

Open
#15,529 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

There is a bug when opening a field of type "Entries" in a modal. Many console error logs are triggered and it's not possible to select the entry.
It works fine if I open the modal in a new tab.
See the example:
CleanShot 2024-08-13 at 15 12 05

Craft CMS version

5.3.3

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Craft CMS 5.3.3 with PHP 8.3 by opening an Entries field in a modal and attempting to select an entry. Compare the modal with opening it in a new tab, and inspect the console errors. Done means entries can be selected in the modal without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.