Needs review
Project:
Node import
Version:
5.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2009 at 15:43 UTC
Updated:
6 Apr 2009 at 17:09 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_import_content.inc_.allow empty values in optional fields.patch | 895 bytes | abautu |
| node_import_content.inc_.allow empty values in optional fields.patch | 886 bytes | abautu |
Comments
Comment #1
abautu commentedIn the previous patch I didn't considered that some fields have multiple columns (such as imagefield). Fixed in this patch.