I have a content type with unlimited image fields AND unlimited text fields, and I can consistently reproduce this behaviour, even on a fresh D7 install:
* upload one image (a second image upload field will appear)
* add a second text field
* upload a second image
* node is saved for no apparent reason, and without the second image

Any explanations? I've been trying to debug but I don't think I'm experienced enough with drupal code to know what's going on. Could someone point to which function is run when I click the upload button? Thank you!

Comments

olrandir’s picture

Update: this doesn't happen if I add several text fields first, and then try uploading images.

After that however, as soon as I add a new text field, and then try to upload another image, I get the same behaviout, i.e. the node automatically saves for some reason and all images except for the first one are removed.

bryancasler’s picture

subscribe

olrandir’s picture

The patch in http://drupal.org/node/1059268 worked for me! It's for D8, so won't apply on its own, but I edited the files manually and it fixed my issue.

bfroehle’s picture

Status: Active » Closed (duplicate)