Skip to content

Commit acec448

Browse files
committed
Migration: do not migrate c_tool_intro from a session if the session does not exist anymore - refs BT#22518
1 parent f76ccf0 commit acec448

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/CoreBundle/Migrations/Schema/V200/Version20210930130343.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public function up(Schema $schema): void
7272
$session = null;
7373
if (!empty($sessionId)) {
7474
$session = $sessionRepo->find($sessionId);
75+
if ($session === null) {
76+
continue;
77+
}
7578
}
7679

7780
$admin = $this->getAdmin();

0 commit comments

Comments
 (0)