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

Can't import if the value of multi-select field is 0 #1413

Open
samdi opened this issue Feb 22, 2024 · 1 comment
Open

Can't import if the value of multi-select field is 0 #1413

samdi opened this issue Feb 22, 2024 · 1 comment
Assignees
Labels

Comments

@samdi
Copy link

samdi commented Feb 22, 2024

Description

I created a field with multi-select for all the days of the week (days_of_week), with values from 0 to 6. However, when I try to the sunday with value 0, it does not show "Sunday" as selected in the entry editor. I tried other values 1 - 6, it works. I also tried 0 and 1 and only 1 is selected.

Steps to reproduce

  1. Create a multi-select field with options and values for all days of the week, starting with Sunday (value 0) to Saturday (value 6).
  2. Add this field to an entry type.
  3. Import a new entry with this property, for example, <days_of_week>< item >0< /item ></days_of_week>
  4. Check to see it in the entry editor and the field is empty, not selected.

Additional info

  • Craft version: 4.7.3
  • PHP version: 8.2
  • Database driver & version: Mariadb 10.6
  • Plugins & versions: 5.3.0
@i-just
Copy link
Contributor

i-just commented May 16, 2024

Hi, thanks for reporting! I raised a PR for this.

@i-just i-just self-assigned this May 16, 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

2 participants