CC-4562: Calendar: Add Show button is removed after editing a show from regular show to repeating show
-fixed
This commit is contained in:
parent
5ff89eeba2
commit
9d3271c03d
1 changed files with 4 additions and 1 deletions
|
@ -784,7 +784,10 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
|
|
||||||
if ($success) {
|
if ($success) {
|
||||||
$scheduler = new Application_Model_Scheduler();
|
$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->addNewShow = true;
|
||||||
$this->view->newForm = $this->view->render('schedule/add-show-form.phtml');
|
$this->view->newForm = $this->view->render('schedule/add-show-form.phtml');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue