On the site we run, we do not want quiz results reset even after the quizzes have been revised. Unfortunately the Quiz module seems to have taken the opposite approach on how to handle quiz results when quizzes are revised and has implemented a triply-redundant system to make sure that a new revision ID is generated for the quiz, thus nullifying user quiz results.

Even after jumping through all the necessary hoops (give "manual quiz revisioning" permission to admins, set "auto revisioning" configuration setting off, disable "Create a new revision" for quiz content type) the "Create a new revision" checkbox is still checked by default; thus, the user must be careful to make sure the checkbox is unchecked before saving the node. This is undesirable as we wish to have this checkbox unchecked by default, but since the Quiz module does not respect the content type revision configuration it is impossible to change this behavior through the interface.

This appears to have been an oversight in the code. I have included a patch which will have the Quiz module respect the content type "Create a new revision" setting when a user has permission to manually manage quiz revisions and when the auto-revisioning configuration is turned off.

CommentFileSizeAuthor
quiz_fix-for-auto-revisioning.patch809 bytescaesius

Comments

dmegatool’s picture

Thx ! I really needed this. I applied it to the 7.x-4.0 beta1 and it seems to be working just fine. It's great to have control on the revision now.

sivaji_ganesh_jojodae’s picture

Title: (Patch) When auto-revisioning is turned off, module should respect content type revision configuration » When auto-revisioning is turned off, module should respect content type revision configuration
Version: 6.x-4.4 » 7.x-4.x-dev
Status: Active » Fixed

Thanks for the patch.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

minor addendum

  • Commit 150a348 on 7.x-4.x, 7.x-5.x authored by caesius, committed by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...
  • Commit 805f279 on 7.x-4.x, 7.x-5.x by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...

  • Commit 150a348 on 7.x-4.x, 7.x-5.x, quiz-pages authored by caesius, committed by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...
  • Commit 805f279 on 7.x-4.x, 7.x-5.x, quiz-pages by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...

  • Commit 150a348 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 authored by caesius, committed by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...
  • Commit 805f279 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...

  • Commit 150a348 on 7.x-4.x, 7.x-5.x, 2269219 authored by caesius, committed by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...
  • Commit 805f279 on 7.x-4.x, 7.x-5.x, 2269219 by sivaji:
    Issue #1952498 by caesius: Fixed (Patch) When auto-revisioning is turned...