Closed (fixed)
Project:
Ubercart
Version:
7.x-3.0-rc4
Component:
Roles
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2011 at 01:23 UTC
Updated:
20 Feb 2012 at 08:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
liliplanet commentedLooking forward to any solution and thank you :)
Comment #2
jonathan_hunt commentedI've run into this also. It makes uc_roles quite unusable for production sites, so I've increased the Priority of this issue.
Comment #3
tr commentedPlease post a patch if you know what the problem is ...
Comment #4
jonathan_hunt commentedI know the symptom, as described by @mariagwyn but it's not clear to me what the solution is. It looks like uc_role tokens are not part of the expiration data made available to the rule "Notify customer when a role is about to expire" but I don't know enough about rules or the way it interacts with uc_roles to have a patch at this time. How does a uc_role get "in scope" for the rule?
Comment #5
jonathan_hunt commentedI may have found the issue, more testing required:
Comment #6
jonathan_hunt commentedThe above alteration fixes the issue for me.
Comment #7
tr commented@jonathan_hunt: Thank you for finding that. OK, so the problem seems to be a typo. But I believe the proper key is 'uc_role' so I think this should be fixed in the calling function, not in uc_roles.tokens.inc, otherwise it will cause other problems elsewhere.
Please undo your changes and try this patch to see if it also fixes the problem:
Comment #8
jonathan_hunt commentedThat's working for me, thanks.
Comment #9
longwaveCommitted #7.