Cron triggers SQL error

blackdog - July 31, 2009 - 07:48
Project:Decisions
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When running cron, this error pops up:
Unknown column "d.created" in "where clause" query: SELECT d.nid FROM decisions d INNER JOIN node n ON d.nid = n.nid WHERE (d.created + d.runtime) < 1249026115 AND d.active = 1 AND d.runtime <> 0 in /sites/all/modules/decisions/decisions.module on line 82

I'm guessing the d.created should be n.created, so I made a patch for that.

AttachmentSize
decisions_cron.patch981 bytes

#1

anarcat - July 31, 2009 - 16:46
Status:needs review» fixed

Actually, "created" is the node creation date, not the start date for the decision. I fixed this properly in CVS, thanks for reporting the issue.

#2

System Message - August 14, 2009 - 16:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.