From d2239b827dc06c2d2ac8b2fb2336a1b08f822e4b Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 14 Apr 2011 18:03:24 -0400 Subject: [PATCH] CC-1805: Ability to edit a show -removed (now) redundant moveScheduledShowContent function --- application/models/Shows.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/application/models/Shows.php b/application/models/Shows.php index dbaff08d3..ed3f076a2 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -1304,19 +1304,6 @@ class ShowInstance { $showInstance->updateDbTimeFilled($con); } - public function moveScheduledShowContent($deltaDay, $deltaHours, $deltaMin) - { - global $CC_DBC; - - $sql = "UPDATE cc_schedule - SET starts = (starts + interval '{$deltaDay} days' + interval '{$deltaHours}:{$deltaMin}'), - ends = (ends + interval '{$deltaDay} days' + interval '{$deltaHours}:{$deltaMin}') - WHERE instance_id = '{$this->_instanceId}'"; - - $CC_DBC->query($sql); - RabbitMq::PushSchedule(); - } - public function correctScheduleStartTimes(){ global $CC_DBC; @@ -1343,6 +1330,7 @@ class ShowInstance { $CC_DBC->query($sql); } } + RabbitMq::PushSchedule(); } public function moveShow($deltaDay, $deltaMin) @@ -1387,9 +1375,9 @@ class ShowInstance { } } - $this->moveScheduledShowContent($deltaDay, $hours, $mins); $this->setShowStart($new_starts); $this->setShowEnd($new_ends); + $this->correctScheduleStartTimes(); RabbitMq::PushSchedule(); }