Hi, the open and close dates get reverted back to "01/01/2001 - 00:00" or "09/09/2009 - 00:00" when you click the "submit" button on this page : http://example.com/node/nid_value_here/questions.

I think I was able to narrow down the problem to this line of code in the quiz.module file. Line: 2501.

If you comment out or remove the node_save function, the open and close dates will not revert back anymore. Also the data will still be updated and saved accordantly. Does anyone see any repercussions with removing the node_save from that line?

function quiz_set_questions(&$quiz, $questions, $set_new_revision = FALSE) {
  $old_vid = $quiz->vid;
  if ($set_new_revision) {
    // Create a new Quiz VID, even if nothing changed.
    $quiz->revision = 1;
  }
  node_save($quiz);

Comments

falcon’s picture

Status: Active » Fixed

Thanks for reporting!

We can't remove the node_save because it is used to allow other modules to hook into the changes of the quiz and also helps prevent multiple simultaneous edits on the same quiz node.

This problem has now been fixed and changes have been commited.

droath’s picture

Thank you!

Status: Fixed » Closed (fixed)

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