Problem/Motivation

When trying to output zero values using views_xml, the field doesn't display at all.

Proposed resolution

Changing line 100 in views_xml.module to allow for zeros not to be filtered.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jamiehollern’s picture

Status: Active » Needs review
FileSize
887 bytes

Added patch.

jamiehollern’s picture

FileSize
887 bytes

Updated patch to reflect correct config.

othermachines’s picture

Patching the same issue against 6.x-1.x-dev. Is this the correct place to put it?

japerry’s picture

Status: Needs review » Fixed

Made a few alterations, look like this:

if (empty($field->options['exclude']) && !empty($field_output) && ($field_output !== "" || $field_output === '0')) {

That looks to be accepting 0 values now.

  • japerry committed d5911df on 7.x-1.x
    Issue #2248017 by japerry, jamiehollern: Module views_xml disregards 0 (...

Status: Fixed » Closed (fixed)

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