Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-3265: Fixed translation of User Content Objects #2081

Open
wants to merge 5 commits into
base: 2.3
Choose a base branch
from

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
@@ -54,7 +55,12 @@ public function createContentDraft(FormActionEvent $event): void
return;
}

$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
@sonarcloud
Copy link

sonarcloud bot commented Nov 30, 2022

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