|
|
|
@ -130,7 +130,7 @@ final class Version20201212195011 extends AbstractMigrationChamilo |
|
|
|
$admin = $this->getAdmin(); |
|
|
|
$admin = $this->getAdmin(); |
|
|
|
$tool->setParent($course); |
|
|
|
$tool->setParent($course); |
|
|
|
$toolRepo->addResourceNode($tool, $admin, $course); |
|
|
|
$toolRepo->addResourceNode($tool, $admin, $course); |
|
|
|
$newVisibility = 1 === (int) $toolData['visibility'] ? ResourceLink::VISIBILITY_PUBLISHED : ResourceLink::VISIBILITY_PENDING; |
|
|
|
$newVisibility = 1 === (int) $toolData['visibility'] ? ResourceLink::VISIBILITY_PUBLISHED : ResourceLink::VISIBILITY_DRAFT; |
|
|
|
$tool->addCourseLink($course, $session, null, $newVisibility); |
|
|
|
$tool->addCourseLink($course, $session, null, $newVisibility); |
|
|
|
$em->persist($tool); |
|
|
|
$em->persist($tool); |
|
|
|
if (($counter % $batchSize) === 0) { |
|
|
|
if (($counter % $batchSize) === 0) { |
|
|
|
|