Issue Details (XML | Word | Printable)

Key: MDL-9747
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Jamie Pratt
Reporter: Wen Hao Chuang
Votes: 1
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

[formslib] Handling invalid date input in quiz respond incorrectly

Created: 09/May/07 08:32 AM   Updated: 14/Jul/09 08:04 AM
Return to search
Component/s: Course, Forms Library, Quiz
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

File Attachments: 1. JPEG File auto_change_to_vaild_date.jpg (4 kB)

Image Attachments:

1. input_invaild_date.jpg
(37 kB)

Database: Any
Participants: Jamie Pratt and Wen Hao Chuang
Security Level: None
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
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!

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Wen Hao Chuang added a comment - 14/Jul/09 08:04 AM
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.