Error message if open date not set

Abierto
#2,942 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
perl
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Perl
Estrellas
164
Forks
167
Merge medio
6 d 7 h
PR fusionados (30 d)
27

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openwebwork/webwork2

Todos los issues de openwebwork/webwork2

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.