CC-5725: Changing a show's repeat type removes first instance from repeating series

This commit is contained in:
drigato 2014-03-06 10:54:40 -05:00
parent bcda9ea5e6
commit 51b5cc2052
1 changed files with 2 additions and 2 deletions

View File

@ -1547,8 +1547,8 @@ SQL;
if ($this->isUpdate) { if ($this->isUpdate) {
$showDay = CcShowDaysQuery::create() $showDay = CcShowDaysQuery::create()
->filterByDbShowId($showId) ->filterByDbShowId($showId)
->filterByDbRepeatType($this->repeatType) ->filterByDbRepeatType($this->origCcShowDay->getDbRepeatType())
->filterByDbDay($day) ->filterByDbDay($this->origCcShowDay->getDbDay())
->findOne(); ->findOne();
if (!$showDay) { if (!$showDay) {
//if no show day object was found it is because a new //if no show day object was found it is because a new