Quiz Problem Navigation is broken when using problemPanic.pl

未关闭
#1,699 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript, perl
领域
full-stack

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Perl
星标
164
派生
167
平均合并
6 天 7 小时
30 天内合并 PR
27

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openwebwork/webwork2 的其他 Issue

查看 openwebwork/webwork2 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。