Posted by alxp on February 17, 2013 at 3:17am
3 followers
| 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
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.