Inside "Layers" create a supertable field employeeItems. With the fields employeeTitle and employeeId.
Create the field mapping
Multiple items are expected, but only the last one is imported (also viewable with the debug link)
Possible solution?
On line 72 of SuperTable.php:
$blockIndex = Hash::get($nodePathSegments, 1);
The $blockIndex will get the ID from the matrix layer not the supertable field. So the same key is created for every item. Hence, only the last item is imported.
Change the second param, so the correct keys are created.
$blockIndex = Hash::get($nodePathSegments, 3);
This seems to work, but I'm not sure if this creates other problems.
Description
When importing multiple values for a Supertable field inside a matrix field. The result will end up with 1 item instead of multiple.
Example import json
Steps to reproduce
Possible solution?
On line 72 of SuperTable.php:
The $blockIndex will get the ID from the matrix layer not the supertable field. So the same key is created for every item. Hence, only the last item is imported.
Change the second param, so the correct keys are created.
This seems to work, but I'm not sure if this creates other problems.
Additional info