I have an optional CCK field with checkboxes that have values 1, 2, 3, 4. I want to import data with no option selected. So there is no value for that field in the file or global settings. This causes node import to set $values = array(0 => ''); which is different from what I wanted. The problem is that this entry goes though validation and fails (because it's not 1, 2, 3 etc).

I thing the global value should be considered if the field is required or a global value has been entered. Patch attached.

Nice work, btw.
Andrei.

Comments

abautu’s picture

In the previous patch I didn't considered that some fields have multiple columns (such as imagefield). Fixed in this patch.