-
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
Update AbstractTemplate.php #5741
Conversation
Added strict comparison for $storeID
Duplicate #5729 |
Yeah, the pull request was made to 2.1 branch and I just read that only pull requests to dev branch will be accepted |
Internal ticket: MAGETWO-58368 |
@vkorotun @mmansoorebay Will MAGETWO-58368 be included in 2.1.3? |
It isn't included in 2.1.3, still got the same error. |
Still not in 2.1.10. Can someone @magento-engcom-team please look at this? |
Hi @vivek201 Could you please follow the CLA Assistant link and sign it? Thank you for collaboration. |
Hi @ishakhsuvarov, it's done |
@vivek201 Thank you for collaboration! |
@ishakhsuvarov & @magento-engcom-team, this issue is marked as fixed in Magento 2.1.x however I just checked out the latest 2.1 branch and it appears to be the old version? Is that right or have aI lost my marbles?? |
Added strict comparison for $storeID
Regarding issues #5288, #5666 and #5703.
Issue:
Global Design Configuration does not save.
Scenario:
When the design configuration for the Global Scope is saved, the configuration tries to validate the transactional email header and footer templates through https://github.com/magento/magento2/blob/2.1/app/code/Magento/Theme/Model/Design/Config/Validator.php#L69.
For email templates, the $template is an object of Magento\Email\Model\Template which is inherited from Magento\Email\Model\AbstractTemplate . And in line 670 is the
emulateDesign
function.When the design is saved from the global scope, the $storeId being passed is
0
, sofalse
is returned even when an actual value is being passed.Solution:
Change the if condition to
if ($storeId !== false)
.