Skip to content

Commit

Permalink
MediaCast: 31722 check old order id is available in mapping if not co…
Browse files Browse the repository at this point in the history
…ntinue
  • Loading branch information
shecken committed Oct 18, 2023
1 parent 24e2658 commit fb2c9fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modules/MediaCast/classes/class.ilObjMediaCast.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ protected function copyOrder(
): void {
$items = [];
foreach ($this->readOrder() as $i) {
if(!array_key_exists($i, $mapping)) {
continue;
}
$items[] = $mapping[$i];
}
$newObj->saveOrder($items);
Expand Down

0 comments on commit fb2c9fb

Please sign in to comment.