Over at #76725-43: Refactor project issue module to use Views point E, I ran into the problem where the new Views2 based issue queues (http://d6.drupal.org/project/issues) print out "Anonymous (unverified)" in the "Assigned to" column for all unassigned issues. It'd be nice if there was an easy way to configure a view such that if you're displaying a user name field, to print an empty string in the case of anonymous. Earl requested instead of a simple "Don't print if anonymous" checkbox, it should be a text field to print for anonymous with a checkbox to enable using the text field.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 368234-5.anon_user_text.patch | 2.82 KB | dww |
| #4 | 368234-4.anon_user_text.patch | 2.8 KB | dww |
| #3 | 368234-3.anon_user_text.patch | 2.8 KB | dww |
| #2 | 368234.patch | 1.64 KB | neclimdul |
Comments
Comment #1
dwwOh, forgot to tag this as relevant to the d.o upgrade...
Comment #2
neclimdulHaven't verified that this works but it should be right.
Comment #3
dwwThere were some logic bugs in the previous patch. However, at Earl's request, I re-wrote this to use a text field for the text to display for anonymous users, and an "Overwrite the value to display for anonymous users" checkbox.
This all works great now, except I seem to have screwed up the #dependency stuff to make the text field automatically hide/show based on the value of the checkbox... Help with that would be appreciated.
Thanks,
-Derek
Comment #4
dwwEarl straightened me out about #dependency in IRC. This should now be RTBC.
Comment #5
dwwLate last night, Earl mentioned we should also make this text field translatable. I think this is all it needs.
Comment #6
neclimdulLooks great to me.
Comment #7
merlinofchaos commentedCommitted!
Comment #8
dwwYay, thanks!