You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just ran into a curious issue. When editing a custom source on the entry indexes page, clicking on the settings for an existing custom source will 'forget' which sites were selected:
The custom source is active for Site 1, but the checkbox is missing after opening and closing the settings modal.
Saving the modal with no sites selected for the custom will redirect and then throw an error, preventing you from changing this setting again:
array_map(): Argument #2 ($array) must be of type array, false given
I had to hack a workaround into ElementSources::getSources() to be able to load the page again and fix the setting. Re-opening the custom source settings wipes the selected sites again.
Steps to reproduce
Create a second site in the settings.
In the entry index, create a custom source that is active in only one site and save the settings.
Reopen the settings for the custom source and save it again.
Expected behavior
The custom source should not forget which sites are selected.
Having no sites selected should not result in an unrecoverable error.
Actual behavior
See above.
Craft CMS version
5.2.8
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
No response
The text was updated successfully, but these errors were encountered:
What happened?
Description
Just ran into a curious issue. When editing a custom source on the entry indexes page, clicking on the settings for an existing custom source will 'forget' which sites were selected:
The custom source is active for Site 1, but the checkbox is missing after opening and closing the settings modal.
Saving the modal with no sites selected for the custom will redirect and then throw an error, preventing you from changing this setting again:
I had to hack a workaround into
ElementSources::getSources()
to be able to load the page again and fix the setting. Re-opening the custom source settings wipes the selected sites again.Steps to reproduce
Expected behavior
Actual behavior
See above.
Craft CMS version
5.2.8
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
No response
The text was updated successfully, but these errors were encountered: