1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-18297: Completion date checking - when updating meaning of 'available until', forgot to update validation code

This commit is contained in:
sam_marshall 2009-06-22 11:11:45 +00:00
parent 73af8b1139
commit 29cb6c4c47

@ -275,7 +275,7 @@ class moodleform_mod extends moodleform {
// Conditions: Don't let them set dates which make no sense
if (array_key_exists('availablefrom', $data) &&
$data['availablefrom'] && $data['availableuntil'] &&
$data['availablefrom']>=$data['availableuntil']) {
$data['availablefrom'] > $data['availableuntil']) {
$errors['availablefrom'] = get_string('badavailabledates', 'condition');
}