Closed (fixed)
Project:
CiviEvent Discount
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
26 Jan 2012 at 12:10 UTC
Updated:
9 Feb 2012 at 15:50 UTC
I don't need to worry about expiration dates for the discount codes, so I've not bothered to install the Date module (which is indicated if such support is required). However I'm now getting feedback from users telling me that they've tried to use a discount code and are being told that the code has expired.
Am I doing something wrong?
I'm going to install Date module and see if that helps to clear the problem up - at least it will give me the option of setting an expiration date far into the future.
Comments
Comment #1
dharmatech commentedUnfortunately this is a regression bug. _is_expired() should check the string before comparing since strtotime() returns a negative value. I'll post a fix later today. If you install Date module and enable Date API that should be sufficient to set an expiration.
Comment #2
dharmatech commentedFix is in -dev, rebuild should happen within 12 hours.