CC-3143 : Allow content to be scheduled in an overlapping show.

removing check for scheduling an overlapping show, doesn't make sense with new resize rules.
This commit is contained in:
Naomi Aro 2011-12-01 11:37:55 +01:00
parent f15429c8d6
commit b7a9e89095
1 changed files with 2 additions and 10 deletions

View File

@ -385,14 +385,6 @@ class ScheduleController extends Zend_Controller_Action
$start_timestamp = $show->getShowInstanceStart(); $start_timestamp = $show->getShowInstanceStart();
$end_timestamp = $show->getShowInstanceEnd(); $end_timestamp = $show->getShowInstanceEnd();
//check to make sure show doesn't overlap.
if(Application_Model_Show::getShows(new DateTime($start_timestamp, new DateTimeZone("UTC")),
new DateTime($end_timestamp, new DateTimeZone("UTC")),
array($showInstanceId))) {
$this->view->error = "cannot schedule an overlapping show.";
return;
}
$dateInfo_s = getDate(strtotime(Application_Model_DateHelper::ConvertToLocalDateTimeString($start_timestamp))); $dateInfo_s = getDate(strtotime(Application_Model_DateHelper::ConvertToLocalDateTimeString($start_timestamp)));
$dateInfo_e = getDate(strtotime(Application_Model_DateHelper::ConvertToLocalDateTimeString($end_timestamp))); $dateInfo_e = getDate(strtotime(Application_Model_DateHelper::ConvertToLocalDateTimeString($end_timestamp)));