Example of the problem:

CSV file:
Name,Address,State
TestName,,Texas

Display when viewing node in Drupal:
Name: TestName
Address: null
State: Texas

I would expect it to show as:
Name: TestName
Address:
State: Texas

It seems like it is populated the field with a string = "null" rather than a null value

CommentFileSizeAuthor
#1 feeds-avoid_null_value-1671186-1.patch729 bytesbarig

Comments

barig’s picture

Component: Feeds Import » Code
Issue summary: View changes
StatusFileSize
new729 bytes

Hi,

Just a little patch I found for D6 and adapted to D7.

In my case, "0" was treated as null ( empty(0) = true ).
This patch is generated from 7.x-2.0-alpha8.

Hope it helps ! ( a little late I think but who knows ;) )

barig’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: feeds-avoid_null_value-1671186-1.patch, failed testing.

megachriz’s picture

Status: Needs work » Closed (duplicate)

I don't think this is a problem anymore, at least in dev. See #1107522: Framework for expected behavior when importing empty/blank values + text field fix. Closing this issue as a duplicate.