CC-1805: Ability to edit a show
-removed (now) redundant moveScheduledShowContent function
This commit is contained in:
parent
b6e235b8fe
commit
d2239b827d
|
@ -1304,19 +1304,6 @@ class ShowInstance {
|
||||||
$showInstance->updateDbTimeFilled($con);
|
$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(){
|
public function correctScheduleStartTimes(){
|
||||||
global $CC_DBC;
|
global $CC_DBC;
|
||||||
|
|
||||||
|
@ -1343,6 +1330,7 @@ class ShowInstance {
|
||||||
$CC_DBC->query($sql);
|
$CC_DBC->query($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
RabbitMq::PushSchedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function moveShow($deltaDay, $deltaMin)
|
public function moveShow($deltaDay, $deltaMin)
|
||||||
|
@ -1387,9 +1375,9 @@ class ShowInstance {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->moveScheduledShowContent($deltaDay, $hours, $mins);
|
|
||||||
$this->setShowStart($new_starts);
|
$this->setShowStart($new_starts);
|
||||||
$this->setShowEnd($new_ends);
|
$this->setShowEnd($new_ends);
|
||||||
|
$this->correctScheduleStartTimes();
|
||||||
RabbitMq::PushSchedule();
|
RabbitMq::PushSchedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue