|
@@ 93-96 (lines=4) @@
|
| 90 |
|
$contentCreateStruct->sectionId = $section->id; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if (isset($this->dsl['owner'])) { |
| 94 |
|
$owner = $this->getUser($this->dsl['owner']); |
| 95 |
|
$contentCreateStruct->ownerId = $owner->id; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
// This is a bit tricky, as the eZPublish API does not support having a different creator and owner with only 1 version. |
| 99 |
|
// We allow it, hoping that nothing gets broken because of it |
|
@@ 259-262 (lines=4) @@
|
| 256 |
|
$contentMetaDataUpdateStruct->remoteId = $this->dsl['new_remote_id']; |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
if (isset($this->dsl['owner'])) { |
| 260 |
|
$owner = $this->getUser($this->dsl['owner']); |
| 261 |
|
$contentMetaDataUpdateStruct->ownerId = $owner->id; |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
if (isset($this->dsl['modification_date'])) { |
| 265 |
|
$contentMetaDataUpdateStruct->modificationDate = $this->toDateTime($this->dsl['modification_date']); |