[1.10] Quiz dd_lines question type render bug

Created on 7 March 2014, about 11 years ago
Updated 31 July 2024, 8 months ago

When taking a quiz, the question type dd_lines does not show the drag and drop question.
There is a javascript error because Drupal.settings.quiz_ddlines does not exist.
Replacing

$form['#attached']['js'][] = array(
'data' => array(
'quiz_ddlines' => $default_settings
),
'type' => 'setting'
);

with

drupal_add_js(array('quiz_ddlines' => $default_settings), 'setting');

Fixed it. Why is the form not setting the js settings?

https://www.opigno.org/en/forum/support/picture-not-displayed-questions-...

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code - Quiz core

Created by

πŸ‡¨πŸ‡­Switzerland Jamesap

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024