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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

czigor’s picture

In 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.

Boobaa’s picture

Could 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?

czigor’s picture

Status: Active » Closed (works as designed)

OK, figured it out, a custom code caused this.

prinds’s picture

can you elaborate on that?

What part of your custom code caused the 'bug'?

czigor’s picture

It was a simple user_access() call in a hook_form_alter that stopped the test user from using that node form.