Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect JSON field content syntax resulting in ALL entries/tags being added instead of none. #1552

Open
KBjana opened this issue Nov 23, 2024 · 0 comments
Labels

Comments

@KBjana
Copy link

KBjana commented Nov 23, 2024

Description / Steps

I was doing a JSON export from an old CMS, which had, when the field was empty was outputting either a single space character ( ) or a (,) character.

An entry field was mapped to data that featured a (,) character when there was supposed to be no data instead of id numbers. eg. "craft_product_cat_ids": ","

A Tag field was mapped to data that featured a ( ) character when there was supposed to be no tags. eg. "hosted_escorted": " "

For both of these fields instead of being empty, they were given all the entries / tags.

Additional info

  • Craft version: 5.5.2
  • PHP version: 8.2.24
  • Database driver & version: MySQL 8.0.40
  • Plugins & versions: 6.5.0
@KBjana KBjana added the bug label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant