Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
poll.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jun 2012 at 15:38 UTC
Updated:
5 May 2015 at 04:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
newsec commentedI support this issue, but patch is not modify the node object.
Created a new patch.
Comment #2
newsec commentedComment #3
newsec commentedComment #6
newsec commentedComment #7
David_Rothstein commentedThis looks like a good idea, but I think an automated test should be added here? (Because it's essentially a bug, that you can call node_save() on a poll and $node->choice is not updated to reflect what was saved - so it should be possible to test something like that.)
Also, the original patch looks correct to me, not #1:
This code (added in #1) should not be necessary since Drupal 7 requires PHP 5, and in PHP 5 objects automatically inherit changes made to them...