summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-01-11 23:19:53 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2012-01-11 23:19:53 -0500
commit1c519917ad610f6922f3108c8313e613cbd071a1 (patch)
tree6eb51590a8daf98ef9f935a99752981bc4162fa0 /modules/poll/poll.module
parent84844cf37d999d59b0262c0573b89fbe4c9e7486 (diff)
downloadbrdo-1c519917ad610f6922f3108c8313e613cbd071a1.tar.gz
brdo-1c519917ad610f6922f3108c8313e613cbd071a1.tar.bz2
Issue #1295546 by c31ck, marcingy, amateescu, xjm: Fixed Weight and number of votes not getting saved when updating a poll.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 13d2606de..aebb9f259 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -586,8 +586,10 @@ function poll_update($node) {
'weight' => $choice['weight'],
))
->insertFields(array(
- 'nid' => $node->nid,
- 'chtext' => $choice['chtext'],
+ 'nid' => $node->nid,
+ 'chtext' => $choice['chtext'],
+ 'chvotes' => (int) $choice['chvotes'],
+ 'weight' => $choice['weight'],
))
->execute();
}