Error message if open date not set

Aperta
#2,942 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
perl
Ambito
backend

Direzione di ricerca

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.

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

Descrizione

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.

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.