Skip to content

Conversation

@webhdx
Copy link
Contributor

@webhdx webhdx commented Nov 29, 2022

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-3265
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

This is a complementary PR to: ezsystems/ezplatform-content-forms#63

Main change here changes translation to use correct route ezplatform.content.translate when using autosave option. To prevent creating new drafts, it'll accept versionNo parameter now and use requested draft for editing.

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@webhdx webhdx marked this pull request as ready for review November 30, 2022 07:56
@webhdx webhdx requested a review from a team November 30, 2022 07:57
@ViniTou ViniTou requested a review from a team November 30, 2022 09:33
}

$contentDraft = $this->contentService->createContentDraft($data->content->contentInfo);
if ($data->content->getVersionInfo()->status === VersionInfo::STATUS_DRAFT) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$data->content can be a variable since it's used in all cases.

@konradoboza konradoboza requested a review from a team November 30, 2022 09:41
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bogusez
Copy link
Contributor

bogusez commented Dec 2, 2022

Regression tests passed: ibexa/commerce#168

@bogusez bogusez removed their assignment Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

7 participants