can only resize a show if scheduled content allows.
This commit is contained in:
parent
258157d92c
commit
85a936eb41
|
@ -474,6 +474,14 @@ class ShowInstance {
|
|||
return $overlap;
|
||||
}
|
||||
}
|
||||
//have to check if any scheduled content still fits.
|
||||
else{
|
||||
$scheduledTime = $this->getTimeScheduled();
|
||||
|
||||
if((strtotime($new_ends) - strtotime($starts)) < strtotime($scheduledTime)) {
|
||||
return "Must removed some scheduled content.";
|
||||
}
|
||||
}
|
||||
|
||||
$this->setShowStart($new_starts);
|
||||
$this->setShowEnd($new_ends);
|
||||
|
|
Loading…
Reference in New Issue