Needs review
Project:
Decisions
Version:
6.x-1.x-dev
Component:
Code - Base Decisions module
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
9 Nov 2010 at 15:23 UTC
Updated:
29 Dec 2014 at 20:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
soma115 commentedLooks like flag "active" changes only at cron run by function decisions_cron().
Can we call function decisions_cron() one more time before "Cancel your vote" do the damage?
I was thinking about putting it just before anything else:
function decisions_cancel_form($form_state, $nid) {
decisions_cron();
$form['node'] = array('#type' => 'hidden', '#value' => $nid);
$form['submit'] = array('#type' => 'submit', '#value' => t('Cancel your vote'));
return $form;
}
I don't suppose this is most elegant way but since I'm noob and solution is working... What do you say guys?
BTW: That JOIN in decisions_cron() - is it really necessary?
Comment #2
soma115 commentedComment #3
soma115 commentedComment #4
soma115 commentedPatch attached. Please review.
Comment #5
soma115 commentedComment #6
soma115 commented