Internal: fix title vs name error in migration -refs #3581 #4706

pull/5125/head
Angel Fernando Quiroz Campos 10 months ago
parent 7a19a7fc57
commit 418d13c56c
  1. 4
      src/CoreBundle/Migrations/Schema/V200/Version20210930130343.php

@ -47,7 +47,7 @@ final class Version20210930130343 extends AbstractMigrationChamilo
if (empty($items)) {
$admin = $this->getAdmin();
$tool = $toolRepo->findOneBy(['name' => 'course_homepage']);
$tool = $toolRepo->findOneBy(['title' => 'course_homepage']);
$cTool = (new CTool())
->setTitle('course_homepage')
->setCourse($course)
@ -83,7 +83,7 @@ final class Version20210930130343 extends AbstractMigrationChamilo
$cTool = null;
if ('course_homepage' === $toolName) {
$tool = $toolRepo->findOneBy(['name' => $toolName]);
$tool = $toolRepo->findOneBy(['title' => $toolName]);
if (null === $tool) {
continue;

Loading…
Cancel
Save