Having spent hours trying to track this one through and getting nowhere, I thought I'd strip my site back to default state and this still occurs. Error occurs in versions 1.6, 1.7 and I assume v2 because it occurs on the live http://commons.acquia.com site.

To reproduce, visit http://commons.acquia.com/content/events and use the 'my groups' drop down in the filters. Select either option and hit apply.

Cheers,
Crom

Comments

lightsurge’s picture

Same problem here.

lightsurge’s picture

Component: Miscellaneous » Code
Category: task » bug
Status: Needs review » Active

Needs relationship set on group member filter to make view work. See next comment to solve errors and make the calendar block obey the filter context.

lightsurge’s picture

The filter identifiers are getting all confused. Username should be uid and group member filter should have the relationship and filter identifier set to uid_1. On the event view.

This sorts it I think.

lightsurge’s picture

Component: Code » Miscellaneous
Category: bug » task
Status: Active » Needs review
Crom’s picture

Component: Code » Miscellaneous
Category: bug » task
Status: Active » Needs review

Nice spot lightsurge. Any chance you can post an exported view?

Cheers,
Crom

lightsurge’s picture

StatusFileSize
new17.42 KB

Here you go.... Although as it's only 3 small changes to the view you might be better off just doing it manually, unless there's some other reason you want this.

Crom’s picture

Thanks lightsurge...crazy deadlines over here and I just needed to get it done without thinking...streesssed!

Cheers,
Crom

ezra-g’s picture

Thanks, @lightsurge!

Any chance you can post this as a patch?

lightsurge’s picture

This may no longer be an issue since you revised the view for the group directory, I'll take a look today.

lightsurge’s picture

Category: task » bug
StatusFileSize
new1.16 KB

Sorry no this is still an issue (I was thinking of the wrong view). Patch attached.

lightsurge’s picture

Anybody who reviews this might also want to look at following patch to fix another issue with events http://drupal.org/node/1180080#comment-5212550 which has had one reviewer already, but I'm not sure if setting default timezone in php is a good thing (might benefit from a more experienced look).

ezra-g’s picture

Status: Needs review » Fixed

This looks good and causes the group filter to behave as expected in my testing. Thanks, lightsurge!

I gave you credit in the commit message but forgot to use the --author flag -- Sorry about that :\.

http://drupalcode.org/project/commons.git/commit/5356fc7

epruett’s picture

This fixed the error for our site too. THX!

Status: Fixed » Closed (fixed)

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