CC-2357:Tweak to show date end
- fixed
This commit is contained in:
parent
4eea4f11b0
commit
52dc267670
4 changed files with 105 additions and 102 deletions
|
@ -108,8 +108,8 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
|
|||
if( $formData["add_show_duration"] == "0m" ) {
|
||||
$this->getElement('add_show_duration')->setErrors(array('Cannot have duration 0m'));
|
||||
$valid = false;
|
||||
}elseif(strpos($formData["add_show_duration"], 'h') !== false && intval(substr($formData["add_show_duration"], 0, strpos($formData["add_show_duration"], 'h'))) > 23) {
|
||||
$this->getElement('add_show_duration')->setErrors(array('Cannot have duration > 24h'));
|
||||
}elseif(strpos($formData["add_show_duration"], 'h') !== false && intval(substr($formData["add_show_duration"], 0, strpos($formData["add_show_duration"], 'h'))) > 24) {
|
||||
$this->getElement('add_show_duration')->setErrors(array('Cannot have duration greater than 24h'));
|
||||
$valid = false;
|
||||
}elseif( strstr($formData["add_show_duration"], '-') ){
|
||||
$this->getElement('add_show_duration')->setErrors(array('Cannot have duration < 0m'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue