When using MongoDB Field Storage I'm encountering a problem when I changed a field from having only one value to having unlimited values. After saving the change to the content type and re-loading the node I get a white screen.

The error is:

PHP Fatal error:  Cannot unset string offsets in /home/aoneill/share/testdrupal/sites/all/modules/mongodb/mongodb_field_storage/mongodb_field_storage.module on line 95, referer: http://testdrupal.local/node/2?render=overlay

I'm working on a patch that fixes this and also preserves field values when changing cardinality.

Files: 
CommentFileSizeAuthor
#1 mongodb-whitescreen-on-cardinality-change-1919350-1.patch1.49 KBalxp
Test request sent.
[ View ]

Comments

Assigned:alxp» Unassigned
Status:Active» Needs review
StatusFileSize
new1.49 KB
Test request sent.
[ View ]

Here's my quick fix for the white screen, as well as preserving field values when you change cardinality of a field from one to more than one and vice versa.