User error: "bundle" is an invalid render array key

is displayed when you add a content type.

See the following https://www.drupal.org/node/1283892 issue.

Turns out that

$form['bundle'] = $bundle_id[$form_id];

Is not a valid form element.

See my attached patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tresti88 created an issue. See original summary.

tresti88’s picture

Paul_Gregory’s picture

We were having the same problem. Patch in #2 worked for us.

defconjuan’s picture

Confirming that the patch in #2 works for us as well.

artis’s picture

Reroll the patch against current dev-2.x

artis’s picture

Status: Needs review » Reviewed & tested by the community

This seems like a good fix and has 4 or us at least who are using it successfully.

vidorado’s picture

The patch in #5 works OK

PhilY’s picture

Hi,
Patch #5 seems to be working good for me using Drupal 8.7.7 and Unique Field 8.x-2.x-dev updated 2 Jul 2017
Thanks

superlolo95’s picture

+1 for patch #5