CC-2196: Update a Live show with invalid data, uncheck the Record checkbox

-fixed
This commit is contained in:
martin 2011-04-18 12:01:02 -04:00
parent 114fe1ad3f
commit 7a3fbe9ac7
4 changed files with 19 additions and 14 deletions

View file

@ -661,16 +661,7 @@ class Show {
$showId = $ccShow->getDbId();
$show = new Show($showId);
//If show is a new show (not updated), then get
//isRecorded from POST data. Otherwise get it from
//the database since the user is not allowed to
//update this option.
if ($data['add_show_id'] == -1){
$isRecorded = ($data['add_show_record']) ? 1 : 0;
} else {
$isRecorded = $show->isRecorded();
}
$isRecorded = ($data['add_show_record']) ? 1 : 0;
if ($data['add_show_id'] != -1){
Show::deletePossiblyInvalidInstances($data, $show, $endDate, $isRecorded, $repeatType);