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.
When inserting new row in the question_node table, question_validate function works fine, and $node->quid is correct. But something happens after that, before query_insert call. In query_insert $node->quid is already empty, and correspondingly 0 comes to quid field in the question_node table.
I used a workaround - just reassigned $node->quid in question_insert in the same way as it is done in question_validate.
Comments
Comment #1
codepoet CreditAttribution: codepoet commentedFixed. It wasn't being passed into the node form properly.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.