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.
For writing tests, etc, it would be easier to not have fields changing names. On the "Add filed" form, if there are existing fields, two forms on the same page are trying to use 'field_name'. It's fine for FAPI, but makes it harder to write tests, since the ID to post to will change depending on the # of existing fields, and the fields already added to the given content type.
Attached patch is trivial and tested.
Comment | File | Size | Author |
---|---|---|---|
non-duplicate-keys.patch | 1.1 KB | pwolanin |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedLooks like it should create no problems. I agree the one to change is the existing field name since I'm pretty sure there is no one using form_alter on that value, while there are modules expecting the field_name value in the add new field part. Committed.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.