craftcms / feed-me

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

[4.x]: Lightswitch fields not importing correctly in Super Table field #1524

Closed Jelmer-Ketelaar closed 1 month ago

Jelmer-Ketelaar commented 1 month ago

What happened?

Description

When importing data using the Feed Me plugin, lightswitch fields within a Super Table field are not being set correctly. Instead of reflecting the imported values, they remain in their default state.

Steps to reproduce

  1. Create a Super Table field with one or more lightswitch fields inside.
  2. Set up a Feed Me import mapping to populate the lightswitch fields.
  3. Run the import and check the results.

Expected behavior

Lightswitch fields should be set based on the imported values, either on or off as specified in the data.

Actual behavior

Lightswitch fields remain in their default state (either all off or all on), and do not reflect the imported values.

Craft CMS version

4.11.3

PHP version

8.1.29

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

-

i-just commented 1 month ago

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

angrybrad commented 1 month ago

Feed Me 5.8.1 and 6.4.1 are out with the fix for this.