|
@@ 341-350 (lines=10) @@
|
| 338 |
|
$this->repository->beginTransaction(); |
| 339 |
|
try { |
| 340 |
|
$publishedContent = $loadedUserGroup; |
| 341 |
|
if ($userGroupUpdateStruct->contentUpdateStruct !== null) { |
| 342 |
|
$contentDraft = $contentService->createContentDraft($loadedUserGroup->getVersionInfo()->getContentInfo()); |
| 343 |
|
|
| 344 |
|
$contentDraft = $contentService->updateContent( |
| 345 |
|
$contentDraft->getVersionInfo(), |
| 346 |
|
$userGroupUpdateStruct->contentUpdateStruct |
| 347 |
|
); |
| 348 |
|
|
| 349 |
|
$publishedContent = $contentService->publishVersion($contentDraft->getVersionInfo()); |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
if ($userGroupUpdateStruct->contentMetadataUpdateStruct !== null) { |
| 353 |
|
$publishedContent = $contentService->updateContentMetadata( |
|
@@ 829-836 (lines=8) @@
|
| 826 |
|
$this->repository->beginTransaction(); |
| 827 |
|
try { |
| 828 |
|
$publishedContent = $loadedUser; |
| 829 |
|
if ($userUpdateStruct->contentUpdateStruct !== null) { |
| 830 |
|
$contentDraft = $contentService->createContentDraft($loadedUser->getVersionInfo()->getContentInfo()); |
| 831 |
|
$contentDraft = $contentService->updateContent( |
| 832 |
|
$contentDraft->getVersionInfo(), |
| 833 |
|
$userUpdateStruct->contentUpdateStruct |
| 834 |
|
); |
| 835 |
|
$publishedContent = $contentService->publishVersion($contentDraft->getVersionInfo()); |
| 836 |
|
} |
| 837 |
|
|
| 838 |
|
if ($userUpdateStruct->contentMetadataUpdateStruct !== null) { |
| 839 |
|
$contentService->updateContentMetadata( |