CC-2196: Update a Live show with invalid data, uncheck the Record checkbox
-fixed
This commit is contained in:
parent
114fe1ad3f
commit
7a3fbe9ac7
4 changed files with 19 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue