Active
Project:
Comment Node Edit
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2012 at 20:15 UTC
Updated:
28 Mar 2013 at 06:03 UTC
Jump to comment: Most recent file
i have found a little bug, if i place field to be edited by comment, inside fielgroup, it doesnt appear in comments form.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | field_group_comp.patch | 5.01 KB | andyhu |
Comments
Comment #1
andyhu commentedPlese add this line after line 50 (
$form['#validate'][] = 'cne_form_validate';)It should fix the problem
Comment #2
andyhu commentedHere is the patch, please test
Comment #3
dgastudio commentedsorry, both of proposed solutions doesnt works..
fielgroup is still attached to comments form...
Comment #4
eric.chenchao commentedIn my observation, when we programmatically call field_attach_form to get node attached fields in the comment form. The field group pre render functions will be called twice, which make all nodes fields be removed in the comment form.
But if we Field API to create a new field and use field_attach_form() in the field widget form. There is no problem.
Here is the solution. Add this code in the module file and clear the cache. It should work.