CC-5640: End time does not get updated when editing the current playing show
Was checking if the start time was in the past, but we should check if the end time is in the past. This way you can extend or shrink shows that are currently playing.
This commit is contained in:
parent
0afaeadb15
commit
27c3637591
|
@ -1055,9 +1055,9 @@ SQL;
|
|||
}
|
||||
|
||||
/* When editing the start/end time of a repeating show, we don't want to
|
||||
* change shows that started in the past. So check the start time.
|
||||
* change shows that are in the past so we check the end time.
|
||||
*/
|
||||
if ($newInstance || $ccShowInstance->getDbStarts() > gmdate("Y-m-d H:i:s")) {
|
||||
if ($newInstance || $ccShowInstance->getDbEnds() > gmdate("Y-m-d H:i:s")) {
|
||||
$ccShowInstance->setDbShowId($show_id);
|
||||
$ccShowInstance->setDbStarts($utcStartDateTime);
|
||||
$ccShowInstance->setDbEnds($utcEndDateTime);
|
||||
|
|
Loading…
Reference in New Issue