Moodle

[formslib] Handling invalid date input in quiz respond incorrectly

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5
  • Fix Version/s: None
  • Component/s: Course, Forms Library, Quiz
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

This seems to be related to formslib, see detailed discussion at here:
http://moodle.org/mod/forum/discuss.php?d=69707

Basically if you enter the dates wrong, Moodle 1.8+ will just take it and convert it into some other dates without give the user any warning. Tim suggested that maybe some sort of javascript date selector widget from YUI (http://developer.yahoo.com/yui/calendar/) probably could fix it but not sure whether the codes would be really accessible. If someone could help fixing this that would be great, thanks!

Issue Links

Activity

Hide
Wen Hao Chuang added a comment -

Any update on this? Just tested this and it still behave the same way in 1.9.x (including latest 1.9.5+ build on July 13, 2009).

Tim looks like you are maintaining the /lib/formslib.php, when you get a chance maybe you could take a look a this? I don't have a patch yet.

Show
Wen Hao Chuang added a comment - Any update on this? Just tested this and it still behave the same way in 1.9.x (including latest 1.9.5+ build on July 13, 2009). Tim looks like you are maintaining the /lib/formslib.php, when you get a chance maybe you could take a look a this? I don't have a patch yet.
Hide
Tim Hunt added a comment -

Moodle 2.0 has a pop-up calendar for selecting dates.

Show
Tim Hunt added a comment - Moodle 2.0 has a pop-up calendar for selecting dates.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: