Closed (fixed)
Project:
Fieldset helper
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2010 at 19:06 UTC
Updated:
1 Mar 2012 at 17:20 UTC
For user who doesn't have "save fieldset state" permission, id attribute of collapsible fieldsets is absent.
Comments
Comment #1
jrockowitz commentedThe fieldset's id attribute is only needed if the fieldset's state is being saved which is why it is only generated for users with 'save fieldset state' permission.
What do you need the fieldset id for?
You could add an id to any fieldset using a custom or contrib module like http://drupal.org/project/form_alter_ui.
~jake
Comment #2
geaseWell, any fieldset or form element has id generated by drupal. In this particular case, I needed it for theming, in other cases, it may be needed for javascripting, ajax or something like this. IMHO, it's not a good practice to drop things provided by Drupal core.
Form Alter UI is in development phase and doesn't work well, according to my superficial tests.
I appreciate your work and your module, but nevertheless consider what I reported as bug,
Regards,
Vadim.
Comment #3
jrockowitz commentedgease,
Drupal core does not automatically generate an id attribute for fieldsets. (see #49103: Give fieldsets an id)
The problem has been fixed in D7.
Still, you are right this is a bug and I will address this issue in my next release. #907660: Fieldset helper 2.x road map
Thanks,
~jake
Comment #4
jrockowitz commentedThe issue has been addressed in the fieldset helper 6.x-2.x release (http://drupal.org/node/946000).
Thanks for your patience.
~jake
Comment #5
jrockowitz commentedJust marking this needs review so that it can be reviewed and closed.
Comment #6
jrockowitz commented