Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is most easily reproduced installing flexifield, creating a content type containing only a file (say "file") and a type containing a flexifield referencing the first type (say "fileset"). Whenever saving a form, the subsequent files or images are overwritten by the first one.
This is because the rendered html field (<input type="file" ...>
) does not respect the #array_parents in its naming. The supplied patch fixes this.
Comment | File | Size | Author |
---|---|---|---|
filefield.patch | 938 bytes | drm1114 |
Comments
Comment #1
quicksketchThanks this looks good. I'll give it a shot when I get a chance.
Comment #2
quicksketchTested this out and it works great. Demoting to minor since Flexifield is about the only way this situation could occur.