Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-rc6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Sep 2009 at 18:36 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
univate commentedI think this is the same problem has described here: #569920: logic in function uc_roles_action_order_renew is wrong.
Comment #2
Chad_Dupuis commentedsubscribing
Comment #3
recrit commentedI did see #569920: logic in function uc_roles_action_order_renew is wrong. before I wrote this patch, but my issues were mainly in uc_roles.module where 569920 fixes uc_roles.ca.inc more than what this patch does. I noticed the uc_roles.ca.inc variable bug after I had fixed the other issues. After reviewing the 569920 patch, I would be fine with removing the uc_roles.ca.inc fix from this patch.
modified patch attached
Comment #4
Island Usurper commentedComment #5
Island Usurper commentedI thought it might be better to keep $end_time in the same format regardless of the feature's other settings. Mostly I just moved some logic from on part of the function to another.
I also set the default absolute time to be calculated off of the set relative expiration and the current time. That seems more useful than December 31, 1969 as a default value.
Comment #6
recrit commentedI agree - thats a much cleaner way of setting the $end_time.
Comment #7
Island Usurper commentedThis issue mostly deals with the expiration form, rather than how the data is used. Since the form now behaves appropriately, I think it's fair to say that the patch fixes the issue.
Committed.