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
I've hacked up a crude fix that looks like it is working by making some changes to getReferencedContent() in Export.php . I'll create a PR when I've cleaned and tested it a bit more.
The text was updated successfully, but these errors were encountered:
After looking some more at the code I think the default key is the 'id', so the 'slug' being used in this case might be an exception. The only place in the code where I see something that uses this is in Choice.php which looks like code related to the editor select box shown in the admin part.
My guess would be that the 'keys' option was originally meant for use with other sources of content than a related contentType, and at the same time bolt maybe accept both 'id' and 'slug' as selectors in lots of places? This could explain this 'interesting' situation that I'm in. (I didn't set up the original bolt 3 cms, so I don't know the original reason for using the keys: slug in the definition.
When running
I noticed the output of many 'select' fields was a list of 'empty' fields like this:
Details
Reproduction
Create a contenttype with a specification like this:
Then add a couple of entries to the 'spaces' of contenttype1/2/3 and export using the
database:export
command.It looks like the export command cannot handle select fields that have multiple contenttypes as 'target'.
Database fields for a select field targeting a single type look like this:
Database fields for a select field targeting multiple types look like this:
I've hacked up a crude fix that looks like it is working by making some changes to getReferencedContent() in Export.php . I'll create a PR when I've cleaned and tested it a bit more.
The text was updated successfully, but these errors were encountered: