Migration: Default visibility = Draft

pull/4002/head
Julio 3 years ago
parent 40dba2e67e
commit f0f3873aff
  1. 4
      src/CoreBundle/Migrations/AbstractMigrationChamilo.php

@ -258,11 +258,11 @@ abstract class AbstractMigrationChamilo extends AbstractMigration implements Con
$sessionId = $item['session_id'] ?? 0;
$groupId = $item['to_group_id'] ?? 0;
$newVisibility = ResourceLink::VISIBILITY_PENDING;
$newVisibility = ResourceLink::VISIBILITY_DRAFT;
// Old visibility (item property) is based in this switch:
switch ($visibility) {
case 0:
$newVisibility = ResourceLink::VISIBILITY_PENDING;
$newVisibility = ResourceLink::VISIBILITY_DRAFT;
break;
case 1:

Loading…
Cancel
Save