Commit 5a7742b2 authored by Dries's avatar Dries

- Patch #508700 by yched: field cardinality stored twice.

parent 7f160663
......@@ -261,7 +261,7 @@ function field_create_field($field) {
// have its own column and is not automatically populated when the field is
// read.
$data = $field;
unset($data['columns'], $data['field_name'], $data['type'], $data['locked'], $data['module'], $data['active'], $data['deleted']);
unset($data['columns'], $data['field_name'], $data['type'], $data['locked'], $data['module'], $data['cardinality'], $data['active'], $data['deleted']);
$field['data'] = $data;
// Store the field and create the id.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment