Skip to content

Commit

Permalink
Merge branch '7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Apr 5, 2018
2 parents a8c737e + 8f3aafb commit 65ca567
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -41,6 +41,7 @@
"ezsystems/behatbundle": "^6.1"
},
"conflict": {
"symfony/symfony": "3.4.7",
"doctrine/dbal": "2.7.0"
},
"replace": {
Expand Down
1 change: 1 addition & 0 deletions eZ/Publish/Core/SignalSlot/ContentService.php
Expand Up @@ -325,6 +325,7 @@ public function createContentDraft(ContentInfo $contentInfo, VersionInfo $versio
array(
'contentId' => $contentInfo->id,
'versionNo' => ($versionInfo !== null ? $versionInfo->versionNo : null),
'newVersionNo' => $returnValue->getVersionInfo()->versionNo,
'userId' => ($user !== null ? $user->id : null),
)
)
Expand Down
Expand Up @@ -23,7 +23,7 @@ class CreateContentDraftSignal extends Signal
public $contentId;

/**
* Version Number.
* Original Version Number.
*
* @var int
*/
Expand All @@ -35,4 +35,11 @@ class CreateContentDraftSignal extends Signal
* @var mixed
*/
public $userId;

/**
* Version number of newly created draft.
*
* @var int
*/
public $newVersionNo;
}
1 change: 1 addition & 0 deletions eZ/Publish/Core/SignalSlot/Tests/ContentServiceTest.php
Expand Up @@ -163,6 +163,7 @@ public function serviceProvider()
array(
'contentId' => $contentId,
'versionNo' => $versionNo,
'newVersionNo' => $content->getVersionInfo()->versionNo,
'userId' => $userId,
),
),
Expand Down

0 comments on commit 65ca567

Please sign in to comment.