The implementation of hook_field_is_empty() returns TRUE for string types where the value is the zero string. Any string should not be considered empty unless it's the empty string, "".
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | non_empty_strings_are_not_empty-1440234-1.patch | 2.11 KB | colan |
Comments
Comment #1
colanAdding tag & patch.
Comment #2
colanThis fixes the assumption in #1349904: Don't render zero/null/error.
Comment #3
colanThe corresponding issue for values not stored in the DB is #1928178: Hide field when output is empty (and DB is not used for storage).
Comment #5
colan