What happened?
Description
New entry button on entry selection modal is available for not supported sites.
Steps to reproduce
- Create a new section
section1 with en and en2 as supported sites
- Create a new section
section2 with en as supported site
- Create an entry field with
section2 as source and add it to section1 entry type
Show the site menu for that entry field is not checked
- Craft 4: When create a new
section1 entry for en2 site, on selecting that entry field, there is new entry button that clicking on that throws an error.
- Craft 5: it seems handles this by redirecting user to supported site.
Show the site menu for that entry field is checked
- Craft 4: When create a new
section1 entry, on selecting that entry field, the new entry button is displayed even if en2 is selected on site menu on modal and clicking on that throws an error.
- Craft 5: Changing site menu on modal to
en2 throws an error.
Expected behavior
I guess the correct behavior is to hide create new entry button for not supported sites and not to list not supported sites on modal.
Craft CMS version
4.9.0, 5.1.0
PHP version
8.0.2, 8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
New entry button on entry selection modal is available for not supported sites.
Steps to reproduce
section1withenanden2as supported sitessection2withenas supported sitesection2as source and add it tosection1entry typeShow the site menu for that entry field is not checked
section1entry foren2site, on selecting that entry field, there is new entry button that clicking on that throws an error.Show the site menu for that entry field is checked
section1entry, on selecting that entry field, the new entry button is displayed even ifen2is selected on site menu on modal and clicking on that throws an error.en2throws an error.Expected behavior
I guess the correct behavior is to hide create new entry button for not supported sites and not to list not supported sites on modal.
Craft CMS version
4.9.0, 5.1.0
PHP version
8.0.2, 8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions