CC-5277: Selecting weekly repeat without selecting days fails silently

- added a check in the 'when' form since the validation there relies on the repeat form being valid
- added validation for this in the 'repeat' form
This commit is contained in:
denise 2013-10-01 14:19:02 -04:00
parent 3d9bc85fa0
commit 1e59ab836d
2 changed files with 9 additions and 1 deletions

View file

@ -104,6 +104,10 @@ class Application_Form_AddShowRepeats extends Zend_Form_SubForm
}
}
if (!isset($formData['add_show_day_check'])) {
$this->getElement('add_show_day_check')->setErrors(array(_('Please select a repeat day')));
}
return true;
}