Error message if open date not set

未关闭
#2,942 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
perl
领域
backend

调研方向

The warning comes from a numeric lt comparison at line 131 of lib/WeBWorK/ContentGenerator/ProblemSets.pm, which receives an empty open date. Start there, then check how the Sets Manager form saves and displays that date, since it shows 12/31/69 while the edit field is blank. Done means the Assignments page no longer emits the non-numeric warning for an empty open date, and the empty value is either handled or rejected on save.

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

描述

Somehow an instructor ended up with an empty open date for one assignment (I am unsure how they reached this situation). They were seeing s cryptic error message on the Assignments page:

Argument "" isn't numeric in numeric lt (<) at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/ProblemSets.pm line 131.

When viewing sets in the Sets Manager, the empty date was displayed as "12/31/69, 4:00 PM". But clciking to edit that set, the field was empty.

Maybe nothing can be done about this, but just in case, I thought I would report it.

主要语言
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 摘要。