Closed (fixed)
Project:
Priorities
Version:
6.x-2.19
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2011 at 11:26 UTC
Updated:
9 Oct 2011 at 10:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
brigitte commentedSoory, you certainly need the full text : user warning: Table xxxxxx.priorities' doesn't exist query: SELECT count(*) AS cnt FROM priorities WHERE survey_name='priorities-dixhuitvingt' GROUP BY nid ORDER BY cnt DESC LIMIT 1 in /xxxxxxxx/modules/priorities/priorities.module on line 1473.
Comment #2
gibus commentedStrange error, I cannot reproduce it. Have you had any pb. during installation of the module (that's where the tables are created)? Also, is it a fresh installation or an upgrade?
Comment #3
gibus commentedCan you test the patch attached?
Comment #4
nouriassafi commentedThanks for the great module. You need to modify the following hook for curly brackets as well.
function priorities_cron() {// Check for surveys due to be closed (status = 0 or status = 1).
$time = time();
$sql = 'SELECT survey_name FROM {priorities_surveys} WHERE (starttime + duration) < '. $time .' AND (status = 0 OR status = 1) AND duration != 0';
$result = db_query($sql);
$surveys = array();
while ($r = db_fetch_array($result)) {
$surveys[$r['survey_name']] = $r;
}
foreach ($surveys as $survey_name => $survey) {
db_query("UPDATE {priorities_surveys} SET status = 2 WHERE survey_name = '%s'", $survey['survey_name']);
}
}
?>
Comment #5
gibus commentedThanks just commited in Release 6.x-2.20