Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.41
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 May 2015 at 15:55 UTC
Updated:
18 Jun 2015 at 18:24 UTC
Jump to comment: Most recent
Comments
Comment #1
adamtyoung commentedComment #2
hosais commentedI have the same result. In comments, the profile photo is not correct. Instead, it show the default oa user default image.
I traced a little code,
In profiles\openatrium\modules\contrib\oa_core\modules\oa_users\oa_users.module
Line 95:
Since field_user_picture does not exist so it is always false. => default oa image. I think oa_comment_preprocess_comment(&$vars) does not have expected user information.
Anyone knows how to fix it?
Thanks.
Comment #3
mpotter commentedActually, the problem was in the new template for comments. It was always showing the picture for the task itself and not for the comment. Leaving this open because it's working for me now but not sure if there is still an issue for the default user. The field_user_picture *should* exist on your OA site.
Comment #4
mpotter commentedThe fix was in commit ef53468 to oa_comment, so marking this for Review if someone wants to pull that commit and test it.
Comment #5
dpoletto commentedFYI I add that the same behaviour seems to happen also on a Discussion Section where, on its main view ("View: Open Atrium Comment Topic List: Topics"), each Discussion Post is correctly shown with the poster user profile's picture but (new/old) comments, relevant to that one, are shown with the default OA place holder of each user's profile picture.
The commit provided (http://cgit.drupalcode.org/oa_comment/commit/?id=ef53468992a2857af6ed94a...) fixes that (I'm on OA 2.41 updated from OA 2.33). Thanks.
Comment #6
mpotter commentedYep, I mentioned in #3...it applies to all comments on any content type.
Glad to hear the commit fixed it for you. Marking this as fixed.
Comment #7
hosais commentedThank you. I tested and it works for me too.