From ce7eddf563b8efdd91679dab754d194ffc858462 Mon Sep 17 00:00:00 2001 From: drigato Date: Thu, 30 Jan 2014 12:07:24 -0500 Subject: [PATCH] CC-5678: Scheduler: Show's contents won't follow show's scheduled time change Fixed by storing original cc_show_day object by value --- airtime_mvc/application/services/ShowService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/services/ShowService.php b/airtime_mvc/application/services/ShowService.php index f71f9f8ca..f5715bc8f 100644 --- a/airtime_mvc/application/services/ShowService.php +++ b/airtime_mvc/application/services/ShowService.php @@ -155,9 +155,9 @@ class Application_Service_ShowService private function storeOrigLocalShowInfo() { if ($this->ccShow->isRepeating()) { - $this->origCcShowDay = $this->ccShow->getFirstRepeatingCcShowDay(); + $this->origCcShowDay = clone $this->ccShow->getFirstRepeatingCcShowDay(); } else { - $this->origCcShowDay = $this->ccShow->getFirstCcShowDay(); + $this->origCcShowDay = clone $this->ccShow->getFirstCcShowDay(); } $this->oldShowTimezone = $this->origCcShowDay->getDbTimezone();