For full view of a Quiz node, in multichoice_view() function, check_markup get invoked twice on node->body. This affects some filters which output HTML code like geshi.

1. calling node_prepare($node, $teaser); applies check_markup() on node->body and produces the output code.
2. In function multichoice_render_question_form(), check_markup() is applied a second time to node->body.

$form['question'] = array('#type' => 'markup', '#value' => check_markup($node->body, $node->format, FALSE));

We may want to replace the above snippet with

$form['question'] = array('#type' => 'markup', '#value' => $node->body);

or remove node_prepare() in if(!$teaser && user_access('create multichoice')) block

Comments

mbutcher’s picture

Assigned: Unassigned » mbutcher
Status: Active » Fixed

A fix for this has been committed to head. I removed the redundant check_markup() call in multichoice_render_question_form().

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

  • Commit 0245205 on 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x by mbutcher:
    mulogic: Fix for #305823
    
    

  • Commit 0245205 on 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages by mbutcher:
    mulogic: Fix for #305823
    
    

  • Commit 0245205 on 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, quiz-pages, 2269219 by mbutcher:
    mulogic: Fix for #305823
    
    

  • Commit 0245205 on 6.x-2.x, 6.x-3.x, 6.x-4.x, 6.x-5.x, 6.x-6.x, 7.x-4.x, master, 7.x-5.x, 2269219 by mbutcher:
    mulogic: Fix for #305823