craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
286 stars 140 forks source link

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

Closed samdi closed 1 month ago

samdi commented 4 months ago

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, < item >0< /item >
  4. Check to see it in the entry editor and the field is empty, not selected.

Additional info

i-just commented 1 month ago

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

angrybrad commented 1 month ago

Merged and will be included in the next release.