CC-5697: Editing a linked show's repeat day sets wrong day for show content

Fixed a problem where we can't store the original cc_show_day data
because none can exist at some points. If the user changes the only
repeat day, the cc_show_day rule is deleted first then recreated
This commit is contained in:
drigato 2014-02-25 17:16:14 -05:00
parent 3db1cd412a
commit f1658f6490
1 changed files with 4 additions and 2 deletions

View File

@ -189,9 +189,11 @@ class Application_Service_ShowService
$daysAdded = array();
if ($this->isUpdate) {
$daysAdded = $this->delegateInstanceCleanup($showData);
if (!$this->ccShow->getCcShowDayss()->isEmpty()) {
$this->storeOrigLocalShowInfo();
}
$this->storeOrigLocalShowInfo();
$daysAdded = $this->delegateInstanceCleanup($showData);
$this->deleteRebroadcastInstances();