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
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

milesgillham - June 28, 2009 - 04:54
Assigned to:Anonymous» milesgillham

Renews also appear based upon a previous point in time, so renewing can also mean that the ad is instantly expired. Examining further.

#2

milesgillham - June 29, 2009 - 11:52

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

milesgillham - June 30, 2009 - 11:45
Status:active» fixed

Fixed, committed to -dev branch.

#4

System Message - July 14, 2009 - 11:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.