Due to the check for poll results the menu_get_object() gets called. When in a particular use case menu_set_item(NULL,$node) is set, for example to change the active menu trail, the menu_get_object() the nid that is returned after checking for the poll results is not the nid from the $arg[1] but the $node->nid from $node = menu_get_object().
I think it will be better to return $arg[1] instead of $node->nid
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | nodewords-n1961104-3.patch | 450 bytes | damienmckenna |
Comments
Comment #1
ralphvdhoudt commentedMy proposed path to fix the issue
Comment #2
damienmckennaIn that case, shouldn't it instead change to the following?
Comment #3
damienmckennaA patch based upon the code from #2.
Comment #4
damienmckennaCommitted.
Comment #5
damienmckenna