Have a checkbox field in my profiles. In a User view, I added that field to the view and an exposed filter. It will find records w/a value of "true" but not records w/a value of "false." I suspect that these records actually have a value of null not "false," but there's no filter option to find null... and the table actually displays "false" rather than an empty space or "null."
So I can't filter to find users who have failed to check that box.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 416178-profile_empty.patch | 442 bytes | dawehner |
Comments
Comment #1
dawehnerI guess with http://drupal.org/node/508124#comment-2044470 it works now.
Feel free to open the issue again.
Comment #3
rsbecker commentedI am having this problem with the dev version of Views downloaded today, 6.x.2.dev. I also had it with 6.x.2.8.
It appears not to be fixed yet.
Comment #4
Offlein commentedI am experiencing this with Views 6.x-2.10.
I have a profile checkbox field saying "Opt out of user directory" and I want to include people that have not checked that box. But if no one has checked it, they seem to appear as null.
I think the simple fix is to modify around Line 152 in views/modules/profile.views.inc and, inside the 'filter' array for the 'checkbox' fieldtype (this is all in profile_views_fetch_field() ) simply add a key of 'accept_null' with the value of TRUE.
Comment #5
dawehnerHere is a patch for the solution in #4
Profile is definitive not the module with the best datastructure/storage.
Comment #6
merlinofchaos commentedCommitted to all branches.