Skip to content
Snippets Groups Projects
Commit d5911df7 authored by Jakob P's avatar Jakob P
Browse files

Issue #2248017 by japerry, jamiehollern: Module views_xml disregards 0 (zero) values

parent 3a57ce4e
Branches
Tags 7.x-1.0-alpha1
No related merge requests found
......@@ -152,7 +152,7 @@ function _views_xml_render_fields($view, $row) {
}
}
if (empty($field->options['exclude']) && ($field_output != "") && !empty($field_output)) {
if (empty($field->options['exclude']) && !empty($field_output) && ($field_output !== "" || $field_output === '0')) {
$object = new stdClass();
$object->id = $id;
$object->content = $field_output;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment