Quiz Problem Navigation is broken when using problemPanic.pl

Aperta
#1,699 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, perl
Ambito
full-stack

Direzione di ricerca

Start with the quiz navigation path: problemPanic.pl is reported as the trigger, and the JavaScript error comes from gateway.js at a?.dataset.confirmDialogMessage, where the navigation menu element is undefined. Reproduce by building a quiz with one problem per page and placing the attached problem as question #2, then inspect what markup problemPanic.pl emits for the navigation. Done means the menu stays functional after visiting problem 2 and the console error no longer appears. The attached .pg file is needed to reproduce, and the thread has no fix yet.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Strange one here. Steps to reproduce

  1. Create a quiz with a few problems. Make sure that the quiz has a single problem per page.
  2. Add the attached problem to the quiz and put it as question #2.
  3. Take the quiz.
  4. After navigating to problem 2, the navigation menu is no longer functioning and there is the javascript error:
undefined is not an object (evaluating 'a?.dataset.confirmDialogMessage')

in the gateway.js file.

One of our instructors found this and narrowed it down to the problemPanic.pl file.

broken_quiz_nav.pg.txt

Lingua principale
Perl
Stelle
164
Fork
167
Merge medio
6g 7h
PR unite (30g)
27

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwebwork/webwork2

Tutte le issue di openwebwork/webwork2

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.