I was using a module and noticed a strange behavior when it came to multiple (unlimited) content fields. Using the handy Firebug extension I looked at the field--add-more-wrapper and didn't immediately see anything wrong. When I clicked the "Add another item" and the ahah callback fired, Firebug updated and showed me that there was a duplicate field--add-more-wrapper.

Worried that this was perhaps due to some other modules form_altering functions, I did a fresh Drupal 6.9 install and fresh CCK 2.1 install and enabled the text field. Then created a generic content type with only one additional field that was a multiple text field that allowed for unlimited values. This "all fresh" setup also exhibited the same problem. I am also using Firefox if that may affect this issue.

I am not sure if this is an issue where the #ahah['wrapper'] is pointing to the wrong element, or if something else is happening. Maybe someone else can verify this or shed some light on it.

Also, I have attached two screenshots that show the default 2 fields along with Firebug's view of them, and then an after shot that shows 3 fields and the erroneous duplicate ids.

CommentFileSizeAuthor
After - 3 Fields.png68.11 KBflapsjack
Before - 2 Fields.png49.74 KBflapsjack
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Status: Active » Fixed

Yes, just noticed that in D7's 'fields', and fixed it there (patch pending reviews).
Fixed in D6.

drewish’s picture

Status: Fixed » Active

looks like this breaks IE 6.

yched’s picture

Status: Active » Fixed

Yea, that's because my D7 backport was missing a few bits. Should be fixed now.
/me slaps himself on the right cheek.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.