Skip to content

findRaw doesn't return an array item for empty values #1553

@adrianbj

Description

@adrianbj

Short description of the issue

Not sure if this is expected (as a way to reduce the size of the array), or it's a bug, but if a field is blank on a page, then the field is missing completely from the array for that page.

Expected behavior

Array item should still exist, at least optionally.

Actual behavior

Best demonstrated by the screenshot. See how email is listed (presumably because it's a system field), but last_name isn't shown when it's empty. Note some of the other pages in the array have 4 items - these include the last_name item because it's not blank.

In case you're wondering why this is important - I am looping through to populated an export to Excel and a missing array item shifts the values into the wrong columns.

Optional: Screenshots/Links that demonstrate the issue

image

Optional: Suggestion for a possible fix

Could you have a setting to optionally show / hide empty items?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions