Currently, when you clone a Quiz node using the node_clone module ( it correctly clones the node, but it loses all of the associated questions. This is far from ideal because the questions are one of the primary aspects of a quiz, and thus it would be expected for the question association to be maintained when cloning a quiz.

I have attached a patch that adds support for transferring the question relationship to the cloned node when saving. In order to test this patch you will need to install the node_clone module.


btopro’s picture

Status:Needs review» Reviewed & tested by the community

I can confirm that this provides node clone support for quiz module. this would be a very helpful patch when managing lots of quiz objects over time instead of rebuilding similar quizzes all the time.

akeemw’s picture

I found that I needed to have a small change in this patch for it to work.

I'm re-uploading the same patch with one change, adding a reset flag on the node_load. For some reason it would only return false for me withing the quiz_insert function.

$old_quiz = node_load($node->clone_from_original_nid, NULL, TRUE);
akeemw’s picture

Issue summary:View changes

Fix typo