There is a problem when using an imagefield inside a flexifield and configuring flexifield to use an unlimited number of values.
Sometimes (unfortunately we cannot reproduce the case when this happens) after uploading a new image all imagefields inside the flexifield contain the last uploaded image.

Maybe this bug is identical to http://drupal.org/node/292430

Comments

paul_gregory’s picture

Version: 6.x-1.0-alpha5 » 6.x-1.x-dev
StatusFileSize
new142.72 KB

This is true of the latest 6.x Dev aswell and I don't think it's related to http://drupal.org/node/292430. I hope this extra info helps out.

I have a flexifield where each 'row' has two imagefield fields and the flexifield is set to have an unlimited number of values.

Cameo 1
+ Thumbnail image field
+ Enlarged image field
Cameo 2
+ Thumbnail image field
+ Enlarged image field
...

In my case there are two slightly different cases when each row of the flexifield takes on the values of the last row (see my attached screenshot)...

Every thing is OK if I browse to and upload each file individually and then save the node. But if I'm lazy and only browse to files and then either:
1) press the 'Add another item' button or
2) save the node
the last image added to the Thumbnail field is copied to the Thumbnail field of all rows and all Enlarged Image fields take on the last value of the Enlarged Image field.

The work around is to browse to the image you want and then press 'Upload' for each field instead of expecting all images to be uploaded at once when you save the node.

P.S. On a flattering note... I'm hugely grateful to Flexifield for solving a big head-scratcher of a problem on an earlier project! Cheers effulgentsia!

BillyMG’s picture

Confirmed that this is still an issue with the latest versions of FileField, ImageField, and the most up to date dev version of FlexiField.

hnln’s picture

subscribe

I have noticed in my form that other flexifields I use also duplicated (the ones without value now show 10 empty fields instead of 2).

hnln’s picture

This might be a duplicate of http://drupal.org/node/442834