When a user views a contract that he already accepted, there appears a box saying "Agreement accepted by !firstName !lastName for !company on !date" (by default). The placeholder variables are substituted in role_contracts_view() by the values of profile_* attributed of a global $user object. However, in my case, this $user object does not actually carry these attributes, but only the $cUser object loaded by user_load() in the same function. Replacing $user by $cUser as in the attached patch fixes the problem.

CommentFileSizeAuthor
role_contracts-user_profile.diff747 bytestpfeiffer

Comments

avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.