When creating/editing a quiz the Actions I assign in the dropdown do not stick.
I'm using D7.8 and have a few other modules running... but none of them should be interfering with this.

Can anyone else confirm this?

Comments

Anonymous’s picture

I've tracked it down to line 1125 and it's use of MD5(). By switching it to drupal_hash_base64() it will show the current active action.
so this... '#default_value' => MD5($node->aid),
to this... '#default_value' => drupal_hash_base64($node->aid),

Sorry for not supplying a patch... something I need to learn, and I'm aware there is documentation.

henrikakselsen’s picture

StatusFileSize
new424 bytes

Same problem here, but #1 fixed it.

Made it into a patch here.

drewbe121212’s picture

Status: Active » Reviewed & tested by the community

Tested fix and confirmed working correctly.

sivaji_ganesh_jojodae’s picture

Status: Reviewed & tested by the community » Fixed

After the patch I can see the default value preserved however the assigned action doesn't seem to run. I think rules module in the way to go for D7. See #1300420 but I wish to see this module as a separate module works on top of quiz.

drewbe121212’s picture

Hi Sivaji,

I am correctly getting the assigned action to run. Although, I created a custom action through an extra module.

Status: Fixed » Closed (fixed)

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

  • Commit 4d70ef4 on 7.x-4.x, 7.x-5.x authored by henrikakselsen, committed by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit a9c75ff on 7.x-4.x, 7.x-5.x by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit 3abb1bf on 7.x-4.x, 7.x-5.x by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    

  • Commit 4d70ef4 on 7.x-4.x, 7.x-5.x, quiz-pages authored by henrikakselsen, committed by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit a9c75ff on 7.x-4.x, 7.x-5.x, quiz-pages by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit 3abb1bf on 7.x-4.x, 7.x-5.x, quiz-pages by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    

  • Commit 4d70ef4 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 authored by henrikakselsen, committed by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit a9c75ff on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit 3abb1bf on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    

  • Commit 4d70ef4 on 7.x-4.x, 7.x-5.x, 2269219 authored by henrikakselsen, committed by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit a9c75ff on 7.x-4.x, 7.x-5.x, 2269219 by sivaji:
    Fix #1279296 Quiz Assign Action.
    
    
  • Commit 3abb1bf on 7.x-4.x, 7.x-5.x, 2269219 by sivaji:
    Fix #1279296 Quiz Assign Action.