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

codepoet’s picture

Version: 4.7.x-1.0 » 6.x-1.x-dev
Assigned: Unassigned » codepoet
Status: Active » Fixed

Fixed. It wasn't being passed into the node form properly.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.