Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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