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

Fix checking active carrier against store #10695

Merged
merged 2 commits into from
Aug 31, 2017
Merged

Fix checking active carrier against store #10695

merged 2 commits into from
Aug 31, 2017

Conversation

bardkalbakk
Copy link

@bardkalbakk bardkalbakk commented Aug 29, 2017

When creating orders in backend we must use active store code when checking for available carriers.

Description

The same bugfix was introduced in 2.2 dev branch with commit 08b5177

Manual testing scenarios

Enable shipping method in some non-standard store or website, and create a new order in the backend. The shipping option should be listed as available.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

When creating orders in backend we must use active store code when checking for available carriers.

This fix was introduced in 2.2 dev branch with commit 08b5177
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Aug 29, 2017

CLA assistant check
All committers have signed the CLA.

@ishakhsuvarov ishakhsuvarov self-assigned this Aug 29, 2017
@ishakhsuvarov ishakhsuvarov added this to the August 2017 milestone Aug 29, 2017
@miguelbalparda miguelbalparda self-assigned this Aug 29, 2017
@ishakhsuvarov ishakhsuvarov removed their assignment Aug 29, 2017
@@ -106,7 +106,8 @@ public function createIfActive($carrierCode, $storeId = null)
{
return $this->_scopeConfig->isSetFlag(
'carriers/' . $carrierCode . '/active',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeId
Copy link
Contributor

Choose a reason for hiding this comment

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

The build is failing because there is an extra space before $storeId.

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Magento\Test\Php\LiveCodeTest::testCodeStylePsr2
    PHP Code Sniffer has found 1 error(s):
    FILE: ...ild/magento/magento2/app/code/Magento/Shipping/Model/CarrierFactory.php

FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
110 | ERROR | Multi-line function call not indented correctly; expected 12
| | spaces but found 13

Copy link
Author

Choose a reason for hiding this comment

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

Yes, that's been fixed in the latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants