In the README.txt, the example suggests including 'bundle argument' => 5,, but I encountered errors and page redirects like:
Notice: Undefined index: in _field_ui_bundle_admin_path() (line 325 of ../modules/field_ui/field_ui.module).
Fortunately, joeysantiago suggested changing it to 'bundle argument' => 4, in #1526508: Allow more types of Fieldable panels panes to be created, which fixed the problem for me. Since this is the only example and necessary for adding additional bundles, this seems like a fairly important fix. (I would have included this patch in that issue, but it wasn't relevant to the original issue.)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fieldable_panels_panes_notice_undefined_index_in_field_ui_bundle_1762362_1.patch | 810 bytes | davidneedham |
Comments
Comment #1
davidneedhamPatch attached for review.
Comment #1.0
davidneedhamUpdated issue summary.
Comment #1.1
davidneedhamUpdated issue summary.
Comment #2
mrfelton commentedYes, agreed. Should be 4 not 5.
Comment #3
Andrew Edwards commentedWorks for me.... Thanks.
Comment #4
caschbre commentedAfter clearing the cache, this fix also worked for me.
Comment #5
betoscopioGreat, this fix the problem, but why?
I added some fields to these custom panes mostly based on the code of the module panopoly_widgets and I found the same error while editing fields of a pane
Notice: Undefined index: in _field_ui_bundle_admin_path() (line 325 of ../modules/field_ui/field_ui.module).After this fix, errors has gone.
I think we could improve the documentation, maybe have more than one example with different options or how to add fields to these custom panel panes.
Comment #6
dave reidThis looks good. Will commit shortly.
Comment #7
dave reidCommitted to 7.x-1.x with http://drupalcode.org/project/fieldable_panels_panes.git/commit/c113ab6. Thanks!
Comment #8.0
(not verified) commentedUpdated issue summary.