Reproduce:
------------------
1. Create a profile link field
2. Create a view that displays that field for a given user (based on an argument; or show for all users). Set the field to "Hide if empty" and "Display as a link".
3. Display the view set for a user that has not filled out that field. It still shows, regardless of these settings.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_add-empty-check-url-field-1379154.patch | 567 bytes | mstef |
Comments
Comment #1
mstef commentedThe problem seems to be in views_handler_field_url.inc, which is what profile uses to output these fields. There are no checks for empty, or the hide if empty option.
Added a simple check in render(), excluding the check on "count zero as empty" because a URL cannot be 0:
Comment #2
mustanggb commented