CC-4562: Calendar: Add Show button is removed after editing a show from regular show to repeating show

-fixed
This commit is contained in:
denise 2012-10-15 15:36:38 -04:00
parent 5ff89eeba2
commit 9d3271c03d
1 changed files with 4 additions and 1 deletions

View File

@ -784,7 +784,10 @@ class ScheduleController extends Zend_Controller_Action
if ($success) {
$scheduler = new Application_Model_Scheduler();
$scheduler->removeGaps($data['add_show_instance_id']);
$showInstances = CcShowInstancesQuery::create()->filterByDbShowId($data['add_show_id'])->find();
foreach ($showInstances as $si) {
$scheduler->removeGaps($si->getDbId());
}
$this->view->addNewShow = true;
$this->view->newForm = $this->view->render('schedule/add-show-form.phtml');
} else {