feed-me icon indicating copy to clipboard operation
feed-me copied to clipboard

Bugfix: Fix import into entry field from an array

Open Furo42 opened this issue 8 months ago • 0 comments

Description

This adjustment fixes a simple bug: If you want to import entries from an array (as in the example in the documentation https://docs.craftcms.com/feed-me/v6/content-mapping/field-types.html#entries), an error occurs:

TypeError craft\helpers\Db::escapeParam(): Argument #1 ($value) must be of type string, array given, called in /var/www/html/vendor/craftcms/feed-me/src/fields/Entries.php on line 172

This error occurs because the parsed values are stored in a subarray in the fetchArrayValue method.

Related issues

Furo42 avatar Apr 22 '25 12:04 Furo42