-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Fix #7065 - page.main.title is translating title #26269
Fix #7065 - page.main.title is translating title #26269
Conversation
Hi @Bartlomiejsz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
9337075
to
32f2e81
Compare
ScopeConfigInterface $scopeConfig = null | ||
) { | ||
parent::__construct($context, $data); | ||
$this->scopeConfig = $scopeConfig ?: ObjectManager::getInstance()->get(ScopeConfigInterface::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we used such constructions to keep backward compatibility.
Currently we are delivering code in Magento 2.4.
So can you please, implement this without using of ObjectManager directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nuzil done
32f2e81
to
8fe06ff
Compare
Hi @nuzil, thank you for the review. |
✔️ QA passed |
@magento run all tests |
Hi @Bartlomiejsz, thank you for your contribution! |
Description (*)
This is fix for #7065. To resolve the issue additional configuration option was added to store design configuration. As default, current behavior is kept, but this can be changed to not translate title, if needed.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Translate Title
option in Content -> Design -> Configuration toNo
, flush cacheQuestions or comments
Contribution checklist (*)