Download & Extend

White screen when a field's cardinality has changed

Project:Mongodb
Version:7.x-1.x-dev
Component:Field storage
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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.

Comments

#1

Assigned to:alxp» Anonymous
Status:active» needs review

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.

AttachmentSizeStatusTest resultOperations
mongodb-whitescreen-on-cardinality-change-1919350-1.patch1.49 KBTest request sentNoneView details
nobody click here