I have a content type that uses field_group to group its fields. There is a 'Vertical tab group' containing 2 vertical tabs. The title of the node is in the first tab. The body is outside the vertical tab group, but I think it's irrelevant.
On node creation I can see the title textfield just fine.
However, I have a test that submits this form with drupalPost and it does not seem to be able to find the title field.
See attached screenshots.
| Comment | File | Size | Author |
|---|---|---|---|
| The Simple Browser output (clicking 'Verbose message' above the red ellipse on the previous image) | 40.31 KB | czigor | |
| Test result | 104.81 KB | czigor |
Comments
Comment #1
czigor commentedIn the same test (actually, this is the setUp of the test case) I drupalPost other node forms without field_groups and there's no problem there.
Comment #2
boobaaCould you please attach a _minimal_ step-by-step description about how to reproduce this? And/or a feature containing your content type and the minimal test that reproduces this bug?
Comment #3
czigor commentedOK, figured it out, a custom code caused this.
Comment #4
prinds commentedcan you elaborate on that?
What part of your custom code caused the 'bug'?
Comment #5
czigor commentedIt was a simple user_access() call in a hook_form_alter that stopped the test user from using that node form.