The weird part is that score if not chosen has a max length of 4. A max length of 2 is especially troublesome if you work with negative values. I propose to extend the size to 4 for consistency. Patch coming up.

CommentFileSizeAuthor
#1 multichoice_scorelength-1444014-1.patch775 bytesfuzzy76

Comments

fuzzy76’s picture

Status: Active » Needs review
StatusFileSize
new775 bytes

Patch attached to raise the length to 4.

sivaji_ganesh_jojodae’s picture

Status: Needs review » Fixed

@fuzzy76, thanks for your patch. It makes sense to change the length to 4. Committed patch to branch 7.x as well.

falcon’s picture

Status: Fixed » Closed (fixed)

  • Commit 8424db5 on 7.x-4.x, 7.x-5.x authored by fuzzy76, committed by sivaji:
    Fix #1444014 Multichoice score if chosen has max length of 2 by fuzzy76
    
    

  • Commit 8424db5 on 7.x-4.x, 7.x-5.x, quiz-pages authored by fuzzy76, committed by sivaji:
    Fix #1444014 Multichoice score if chosen has max length of 2 by fuzzy76
    
    

  • Commit 8424db5 on 7.x-4.x, 7.x-5.x, quiz-pages, 2269219 authored by fuzzy76, committed by sivaji:
    Fix #1444014 Multichoice score if chosen has max length of 2 by fuzzy76
    
    

  • Commit 8424db5 on 7.x-4.x, 7.x-5.x, 2269219 authored by fuzzy76, committed by sivaji:
    Fix #1444014 Multichoice score if chosen has max length of 2 by fuzzy76