When setting empty string or 0 (zero) value to a field it gets ignored.

Lets say you want to upload node content and set its status to unpublished - csv file would look something like this:

title,status
My new node, 0

or update node and set field value to empty, or zero:

nid,title,field_textfield,field_number
1,My updated node,,0

but fields whose value evaluates to FALSE are ignored.

CommentFileSizeAuthor
#2 support_empty_values-3117702.patch622 bytesk-l

Comments

k-l created an issue. See original summary.

k-l’s picture

StatusFileSize
new622 bytes
lashabp’s picture

Indeed it's a bug.. patch applied, thank you.

  • lashabp committed b2efb6e on 8.x-1.x authored by k-l
    Issue #3117702 by k-l: Can't set empty string or zero number
    
lashabp’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.