mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix import social work metadata: use child social issue if any
This commit is contained in:
@@ -284,6 +284,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
} else {
|
||||
$return['socialActionChild'] = $child = (new SocialAction())->setTitle(['fr' => $socialActionChildTitle]);
|
||||
$parent->addChild($child);
|
||||
$child->setIssue($socialIssue);
|
||||
$this->entityManager->persist($child);
|
||||
}
|
||||
|
||||
@@ -370,7 +371,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
->handleSocialAction(
|
||||
$row[2],
|
||||
$row[3],
|
||||
$socialIssues['socialIssue'] ?? $socialIssues,
|
||||
$socialIssue,
|
||||
$previousRow['socialActions']['socialAction'] ?? null,
|
||||
$previousRow['socialActions']['socialActionChild'] ?? null
|
||||
);
|
||||
|
Reference in New Issue
Block a user