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.

Comments

dww’s picture

Issue tags: +drupal.org upgrade

Oh, forgot to tag this as relevant to the d.o upgrade...

neclimdul’s picture

StatusFileSize
new1.64 KB

Haven't verified that this works but it should be right.

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
StatusFileSize
new2.8 KB

There 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

dww’s picture

StatusFileSize
new2.8 KB

Earl straightened me out about #dependency in IRC. This should now be RTBC.

dww’s picture

StatusFileSize
new2.82 KB

Late last night, Earl mentioned we should also make this text field translatable. I think this is all it needs.

neclimdul’s picture

Status: Needs review » Reviewed & tested by the community

Looks great to me.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed!

dww’s picture

Yay, thanks!

Status: Fixed » Closed (fixed)
Issue tags: -drupal.org upgrade

Automatically closed -- issue fixed for 2 weeks with no activity.