Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2009 at 21:51 UTC
Updated:
18 Jul 2009 at 06:20 UTC
The {field_config} table has a dedicated 'cardinality' column, but the cardinality also ends up in the serialized 'data' column.
Attached patch removes cardinality from 'data' - although I think at some point long ago we raised the question of which properties deserved actual columns vs. going in the 'data'. Answer was "the properties you'd need in the WHERE section when using field_read_fields() or field_read_instances()".
I'm not sure cardinality fits this definition...
| Comment | File | Size | Author |
|---|---|---|---|
| field_config_cardinality.patch | 880 bytes | yched |
Comments
Comment #1
yched commentedComment #2
moshe weitzman commentedI'm not too fond of the "unset() to prevent saving in data column" pattern that we have here and in users table. But, this patch is just a simple bug fix so RTBC
Comment #3
dries commentedCommitted to CVS HEAD. Thanks!