Ads expire immediately as they are created
milesgillham - June 28, 2009 - 04:02
| Project: | Classified Ads |
| Version: | 6.x-2.0-alpha2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | milesgillham |
| Status: | closed |
Jump to:
Description
It would appear that the ad expiry time is being set as current time rather than now() + relevant expiry time. Work around is to immediately go back and edit the ad and reset the expiry time checkbox. Remember to set the ad to published as it has then become unpublished. Bleah.

#1
Renews also appear based upon a previous point in time, so renewing can also mean that the ad is instantly expired. Examining further.
#2
There are some problems in the way that the newly created node decides what taxonomy to look up to determine durations. At the moment the duration is always zero + now() so instant expiry. A little rewriting to be done on the taxonomy look up. May be a couple more days before this is fixed.
Work around in the meantime is after creating a new ad the user must immediately re-edit the ad and reset the expiry. No other way round it for the moment.
#3
Fixed, committed to -dev branch.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.