|
@@ 337-346 (lines=10) @@
|
| 334 |
|
$this->repository->beginTransaction(); |
| 335 |
|
try { |
| 336 |
|
$publishedContent = $loadedUserGroup; |
| 337 |
|
if ($userGroupUpdateStruct->contentUpdateStruct !== null) { |
| 338 |
|
$contentDraft = $contentService->createContentDraft($loadedUserGroup->getVersionInfo()->getContentInfo()); |
| 339 |
|
|
| 340 |
|
$contentDraft = $contentService->updateContent( |
| 341 |
|
$contentDraft->getVersionInfo(), |
| 342 |
|
$userGroupUpdateStruct->contentUpdateStruct |
| 343 |
|
); |
| 344 |
|
|
| 345 |
|
$publishedContent = $contentService->publishVersion($contentDraft->getVersionInfo()); |
| 346 |
|
} |
| 347 |
|
|
| 348 |
|
if ($userGroupUpdateStruct->contentMetadataUpdateStruct !== null) { |
| 349 |
|
$publishedContent = $contentService->updateContentMetadata( |
|
@@ 804-811 (lines=8) @@
|
| 801 |
|
$this->repository->beginTransaction(); |
| 802 |
|
try { |
| 803 |
|
$publishedContent = $loadedUser; |
| 804 |
|
if ($userUpdateStruct->contentUpdateStruct !== null) { |
| 805 |
|
$contentDraft = $contentService->createContentDraft($loadedUser->getVersionInfo()->getContentInfo()); |
| 806 |
|
$contentDraft = $contentService->updateContent( |
| 807 |
|
$contentDraft->getVersionInfo(), |
| 808 |
|
$userUpdateStruct->contentUpdateStruct |
| 809 |
|
); |
| 810 |
|
$publishedContent = $contentService->publishVersion($contentDraft->getVersionInfo()); |
| 811 |
|
} |
| 812 |
|
|
| 813 |
|
if ($userUpdateStruct->contentMetadataUpdateStruct !== null) { |
| 814 |
|
$contentService->updateContentMetadata( |