Hi,

I noticed a PDO Exception with devel_generate on a field_collection when you you have the Field Collection Widget set to hidden.
Because the hidden widget uses the FIELD_BEHAVIOR_CUSTOM constant for "multiple value" behavior.

So there are 2 ways to solve this problem.

1) check for this behavior in field_collection_devel_generate() and if set do nothing. Because it is set to hidden ;-)

2) make FIELD_BEHAVIOR_CUSTOM work with field_collection_devel_generate()

I decided to use solution 2.
Patch is coming soon.

Comments

carsteng’s picture

Here comes the patch.

carsteng’s picture

Sorry wrong file format.

carsteng’s picture

carsteng’s picture

Status: Active » Needs review
carsteng’s picture

carsteng’s picture

Issue tags: +Novice
oleksiy’s picture

Patch works for me. Thanks

chris matthews’s picture

Version: 7.x-1.0-beta8 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: -Devel, -devel_generate

The patch in #2 is 3 years old, but still applied cleanly to the latest 7.x-1.x-dev snapshot and also works for me so changing the status to RTBC.

  • ram4nd committed 01e0a57 on 7.x-1.x authored by carstenG
    Issue #2542814 by carstenG, Chris Matthews: Devel generate doesn't work...
ram4nd’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Novice

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.