Its probably fairly edge case, but line 341 in multifield.module expects the '_add_existing_field' key to exist on the form - In my case Im working on a new site with only two fields defined so far. When I add both of them to the multifield, the field ui barfs with:
Fatal error: Function name must be a string in ..../public/modules/field_ui/field_ui.admin.inc on line 154
because all existing fields have already been added to the multifield, _add_existing_field gets set, and because multifield_type_get_fields() returns NULL (as this is the very first multifield I've created) we end up with a weird existing field situation that causes the Fatal Error.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | multifield-existing_fields-2083517-1.patch | 1013 bytes | Mixologic |
Comments
Comment #1
MixologicAnd here's a patch that checks for _add_existing_field
(oh, and multifield_type_get_fields() returns an empty array, not NULL - that way overzealous reporting)
Comment #2
MixologicI can never seem to remember to mark things needs review.
Comment #3
dave reidThanks! Committed #1 to 7.x-1.x. http://drupalcode.org/project/multifield.git/commit/54e8839