Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I have found that if I have multiple Role Expirations in a single order, or someone buys two products (each with a different single role expiration), only one role is activated. It does not matter if the role is set to expire or permanent.
Therefore, at the moment I have to manually check each order for multiple role purchases, and manually add roles to users if applicable.
Drupal 7.39
Ubercart 7x-3.8
Microsoft Azure
MSSQL
Comments
Comment #2
TR CreditAttribution: TR commentedI can confirm this.
Comment #3
dean.p CreditAttribution: dean.p commentedThis is still a problem... anyone found a solution?
Comment #4
TR CreditAttribution: TR commentedThis is a non-profit, open-source project. You did not pay anything for this software, and we (the project maintainers) did not get paid to develop or fix this software.
Issues/bugs get fixed when people volunteer their time to debug the code, then share the solution. Or when people hire a developer to build something, then share that something with the community. Because of this, the fix will necessarily come from someone who needs the solution enough to devote time and effort and/or money to fixing it...
Remember that many people have DONATED thousands of hours of their free time and/or spent thousands of dollars of their hard-earned money (then donated the results) to create the Ubercart you're using today. If no one else has the same needs as you do in this case you're welcome to contribute your own fix, or hire someone to fix the issue then post the fix here. Consider it your contribution to the project.
Comment #5
chrisrockwell CreditAttribution: chrisrockwell commentedFYI I can't reproduce this on 3.8, 3.10 or -dev. I tried the following:
I ran the following against all three versions and found no errors. I originally wrote this to test multiple role assignments on a single product and then re-wrote for a single assignment on multiple products.