Closed (fixed)
Project:
Field Group
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2017 at 17:51 UTC
Updated:
1 Jun 2017 at 22:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
inversed commentedComment #3
grimreaperHello,
I encountered the same issue. Putting an id when there is a description filled on the field group type settings fixed the problem.
So here is a patch that raises an error when setting a description but no id.
It also fixes the current ID and CSS class validation because in Drupal::formBuilder()->setError, there is no setError() method.
Thanks for the review.
Comment #4
amit.sharma.aust commentedHi,
I had the similar issue but applying field_group-fix_settings_validation-2849759-3.patch solved my problem.
When I was creating general type content as developer, it was working fine. But when I was creating general type content as administrator, it was throwing following error on the create content page:
Notice: Undefined index: id in template_preprocess_fieldset() (line 217 of core/includes/form.inc).
And the cause of the error was description field of field_group. When I kept the description field of field_group empty it worked fine (even when I was logged in as administrator) but as soon as I put some description in it, it threw the error message.
Thanks for the solution.
Comment #5
geerlingguy commentedRTBC - this error was a bit annoying on any page where there was a Field Group with a description but no ID. The patch fixes the main issue. Alternatively, a patch could make the ID optional, but that would change the behavior of the module.
Comment #6
pdenooijer commentedBug still exists but patch does not apply :(.
Comment #7
pdenooijer commentedComment #8
nebel54The patch still applies for 1.x (dev and rc6) and works (when new field groups are created).
Comment #9
nils.destoop commentedI'm gonna ignore the patch and provide a fix. The user should not be forced to enter an id. We will generate an id if a description is available, but no id was set.
Comment #12
nils.destoop commentedFixed on both the dev versions.
Comment #13
nils.destoop commentedAlso committed your fix for the form errors when validating css classes.