CC-5596: Can Recreate an Instance in a Location that has been modified

Fixed by updating the modified instance's start/end time and leaving as a placeholder
for future show updates
This commit is contained in:
drigato 2013-12-04 11:36:38 -05:00
parent da0693eb3c
commit 22595c1098
1 changed files with 0 additions and 10 deletions

View File

@ -1030,11 +1030,6 @@ SQL;
if ($this->isUpdate) {
if ($this->hasInstance($utcStartDateTime)) {
$ccShowInstance = $this->getInstance($utcStartDateTime);
// don't update instances that have been edited out of the repeating sequence
if ($ccShowInstance->getDbModifiedInstance() ||
in_array($ccShowInstance->getDbId(), $this->ccShow->getEditedRepeatingInstanceIds())) {
continue;
}
$newInstance = false;
$updateScheduleStatus = true;
} else {
@ -1128,11 +1123,6 @@ SQL;
*/
if ($this->isUpdate && $this->hasInstance($utcStartDateTime)) {
$ccShowInstance = $this->getInstance($utcStartDateTime);
// don't update instances that have been edited out of the repeating sequence
if ($ccShowInstance->getDbModifiedInstance() ||
in_array($ccShowInstance->getDbId(), $this->ccShow->getEditedRepeatingInstanceIds())) {
continue;
}
$newInstance = false;
$updateScheduleStatus = true;
} else {