From f1658f649061abe4ee6d882cf868cf69ca02bd08 Mon Sep 17 00:00:00 2001 From: drigato Date: Tue, 25 Feb 2014 17:16:14 -0500 Subject: [PATCH] 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 --- airtime_mvc/application/services/ShowService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index 3b129599d..b4c31a676 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -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();