Problem/Motivation

  1. Create a drupal minimal install on an SQlite database.
  2. Enable Quiz and some Question modules.
  3. Create a Quiz
  4. Add a Question A. The question appears all right in the 'Questions in this quiz' fieldset, above 'Browse for questions to add'.
  5. Add a Question B. Question A moves to the 'Browse for questions to add' and only Question A appears in the 'Questions in this quiz' fieldset, above the browser.
  6. Adding further questions always makes former questions move to the browser.

This happens only with SQlite, MySQL works fine.

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

wadmiraal’s picture

Status: Active » Postponed (maintainer needs more info)

Hi.

Do you see any JS errors in your browser console ?

czigor’s picture

Status: Postponed (maintainer needs more info) » Active

Only when adding the course an 'undefined' comes from opigno_og_access.js:11. Otherwise the console is empty.

czigor’s picture

I'm using Chromium and SQlite on a ramdrive.

czigor’s picture

The problem here is that adding additional question moves formerly added questions to the Browser (i.e. the 'Browse for questions to add' fieldset) . This is true even for Quiz Lessons. However, the Browser is hidden in the case of Theory lessons (see opigno_simple_ui_form_quiz_questions_form_alter()). Therefore there's no way on the UI to move them back.

So there are two questions here:
1. Why do former questions move to the browser? I don't see any reason why they should.
2. But if that's the correct behaviour, shouldn't the Browser be visible in case of Theory lessons, too?

czigor’s picture

Title: Cannot add more than one slide to a theory lesson » Adding questions moves previous questions to the browser in SQlite
Project: Opigno LMS » Quiz
Version: 7.x-1.9 » 7.x-4.x-dev
Component: Code » Code - Quiz core
Priority: Major » Normal
Issue summary: View changes

This is a Quiz + SQlite issue.