Closed (duplicate)
Project:
Bootstrap fieldgroup
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2014 at 00:58 UTC
Updated:
7 Apr 2015 at 06:40 UTC
Jump to comment: Most recent
Comments
Comment #1
Håvard commentedSame problem!
Comment #2
willowdigit commentedI have the same problem. I know the issue has to do with the id that is not set on the $element. The anchor tag does not have the proper fragment identifier on it (as there is no id to build it from), and then the content div does not have the id attribute that the anchor fragment references. Hence jQuery UI cannot function properly.
I have a shoddy workaround as I cannot trace where the id is supposed to be set. (It is not the id that is set on the gear popup form for the accordion group. That id is for the outer container.)
This is what I do in bootstrap_fieldgroup.module:
function field_group_pre_render_bootstrap_accordion_item(&$element, $group, &$form) {
$element['#id'] = drupal_html_id('bs-accord-' . rand(0, 9999)); // add this line
Comment #3
Håvard commented@ WillowDigit
Thanks, works for me :)
Comment #4
irowboat commentedThank you WillowDigit, got it working also with your help.
Comment #5
socialnicheguru commentedthe fix in 2 is not working for me
Comment #6
openjuy commentedworks but I get this error
Notice: Undefined index: #id en field_group_pre_render_bootstrap_accordion() (línea 171 de /home/seba/www/scholarly/sites/all/modules/bootstrap_fieldgroup/bootstrap_fieldgroup.module).
Comment #7
ckngDuplicate of #2314827: Notice: Undefined index: #id in field_group_pre_render_bootstrap_accordion_item(). Try out the patch there.