using CCK 6.x-3-x-dev and emfield 6.x-2.3.

I'm not certain on which side the problem is, if it's CCK or if it's Embedded Media Field's. However if I create a CCK multigroup and include a emvideo field, with a couple of other text fields, and create say 4 groups. If I put a video link in the second and fourth groups, once I save the node and look at the node object or go back to edit it, video from the second group is in the first, and the video from the fourth group is in the second. so basically it removes any empty fields and just lists the videos that have been entered. So I no longer have them assigned to the right group which is useless.

Any ideas?

Thanks.

Comments

Dokuro’s picture

Having the same issue, this has also been posted in CCK.

http://drupal.org/node/997960

shawnb’s picture

I'm also seeing this.

nanonisse’s picture

Hi, I'm also running into this problem. If i put an emfield into a cck multigroup, empty values will get wrong delta values.

If i comment out the line 78 in the file emfield.cck.inc that says 'unset($items[$delta]);' the deltas seems to work correctly again. The unset only kicks in if the field is empty so it seems to work ok for me.

Anyone got any more info on this?

markisatacomputer’s picture

I'm also having this issue and nanonisse's suggestion seems to work for the moment.

Why is delta being unset here? And what unintended consequences might this janky fix have?