|
@@ 332-341 (lines=10) @@
|
| 329 |
|
$this->repository->beginTransaction(); |
| 330 |
|
try { |
| 331 |
|
$publishedContent = $loadedUserGroup; |
| 332 |
|
if ($userGroupUpdateStruct->contentUpdateStruct !== null) { |
| 333 |
|
$contentDraft = $contentService->createContentDraft($loadedUserGroup->getVersionInfo()->getContentInfo()); |
| 334 |
|
|
| 335 |
|
$contentDraft = $contentService->updateContent( |
| 336 |
|
$contentDraft->getVersionInfo(), |
| 337 |
|
$userGroupUpdateStruct->contentUpdateStruct |
| 338 |
|
); |
| 339 |
|
|
| 340 |
|
$publishedContent = $contentService->publishVersion($contentDraft->getVersionInfo()); |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
if ($userGroupUpdateStruct->contentMetadataUpdateStruct !== null) { |
| 344 |
|
$publishedContent = $contentService->updateContentMetadata( |
|
@@ 766-773 (lines=8) @@
|
| 763 |
|
$this->repository->beginTransaction(); |
| 764 |
|
try { |
| 765 |
|
$publishedContent = $loadedUser; |
| 766 |
|
if ($userUpdateStruct->contentUpdateStruct !== null) { |
| 767 |
|
$contentDraft = $contentService->createContentDraft($loadedUser->getVersionInfo()->getContentInfo()); |
| 768 |
|
$contentDraft = $contentService->updateContent( |
| 769 |
|
$contentDraft->getVersionInfo(), |
| 770 |
|
$userUpdateStruct->contentUpdateStruct |
| 771 |
|
); |
| 772 |
|
$publishedContent = $contentService->publishVersion($contentDraft->getVersionInfo()); |
| 773 |
|
} |
| 774 |
|
|
| 775 |
|
if ($userUpdateStruct->contentMetadataUpdateStruct !== null) { |
| 776 |
|
$contentService->updateContentMetadata( |