pods icon indicating copy to clipboard operation
pods copied to clipboard

Number field, with default of zero, no data entered returns an empty string

Open PodsBot opened this issue 9 years ago • 2 comments

Number field, with default of zero, no data entered returns an empty string submitted via Slack by josh

PodsBot avatar Mar 02 '15 16:03 PodsBot

BTW I'm testing with get_post_meta( $id, 'number_field', true ); which works as expected if the field has a value, but returns an empty string if not. In #support @shameguy4 reports same issue with Pods::display()

Shelob9 avatar Mar 02 '15 16:03 Shelob9

In the case of an ACT with a number field, default 0 but no data (the field is added after records are created) results in NULL from display() or field()

pglewis avatar Jun 02 '15 05:06 pglewis