Commit 0e40e899 authored by Francois Marier's avatar Francois Marier
Browse files

Remove failed merge leftovers

parent 8d8c9b48
*************** function createview1_cancel_submit() {
*** 147,153 ****
}
function createview1_validate(Pieform $form, $values) {
- if ($values['startdate'] > $values['stopdate']) {
$form->set_error('startdate', get_string('startdatemustbebeforestopdate', 'view'));
}
}
--- 147,153 ----
}
function createview1_validate(Pieform $form, $values) {
+ if ($values['startdate'] && $values['stopdate'] && $values['startdate'] > $values['stopdate']) {
$form->set_error('startdate', get_string('startdatemustbebeforestopdate', 'view'));
}
}
*************** function createview1_cancel_submit() {
*** 141,147 ****
}
function createview1_validate(Pieform $form, $values) {
- if ($values['startdate'] > $values['stopdate']) {
$form->set_error('startdate', get_string('startdatemustbebeforestopdate', 'view'));
}
}
--- 141,147 ----
}
function createview1_validate(Pieform $form, $values) {
+ if ($values['startdate'] && $values['stopdate'] && $values['startdate'] > $values['stopdate']) {
$form->set_error('startdate', get_string('startdatemustbebeforestopdate', 'view'));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment