Merge branch '2.5.x' of github.com:sourcefabric/Airtime into 2.5.x
This commit is contained in:
commit
c668d91e08
|
@ -463,6 +463,10 @@ SQL;
|
||||||
if ($showData['add_show_repeats'] != $currentShowDay->isRepeating()) {
|
if ($showData['add_show_repeats'] != $currentShowDay->isRepeating()) {
|
||||||
$this->deleteAllRepeatInstances($currentShowDay, $showId);
|
$this->deleteAllRepeatInstances($currentShowDay, $showId);
|
||||||
|
|
||||||
|
if (!$showData["add_show_repeats"]) {
|
||||||
|
$this->deleteAllShowDays($showId);
|
||||||
|
}
|
||||||
|
|
||||||
//if repeat option was checked we need to treat the current show day
|
//if repeat option was checked we need to treat the current show day
|
||||||
//as a new show day so the repeat instances get created properly
|
//as a new show day so the repeat instances get created properly
|
||||||
//in createWeeklyRepeatInstances()
|
//in createWeeklyRepeatInstances()
|
||||||
|
@ -1573,6 +1577,7 @@ SQL;
|
||||||
$keepDay = $day;
|
$keepDay = $day;
|
||||||
$day = $this->origCcShowDay->getDbDay();
|
$day = $this->origCcShowDay->getDbDay();
|
||||||
}
|
}
|
||||||
|
|
||||||
$showDay = CcShowDaysQuery::create()
|
$showDay = CcShowDaysQuery::create()
|
||||||
->filterByDbShowId($showId)
|
->filterByDbShowId($showId)
|
||||||
->filterByDbRepeatType($this->origCcShowDay->getDbRepeatType())
|
->filterByDbRepeatType($this->origCcShowDay->getDbRepeatType())
|
||||||
|
|
Loading…
Reference in New Issue