Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/1.3.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Sisco committed Mar 5, 2018
2 parents e84bb2b + cf7a931 commit cf4280b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.3.5 (2018-03-05)

* Fix issue where sometimes the connection credentials fail when assigned at website level [#112](https://github.com/classyllama/ClassyLlama_AvaTax/issues/112)

### 1.3.4 (2018-02-14)

* Fix problem where customer can't save edited address in address book [#110](https://github.com/classyllama/ClassyLlama_AvaTax/issues/110)
Expand Down
2 changes: 1 addition & 1 deletion Framework/AppInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ interface AppInterface
/**
* If this is updated it must also be updated in composer.json
*/
const APP_VERSION = '1.3.4';
const APP_VERSION = '1.3.5';
}
5 changes: 3 additions & 2 deletions Helper/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,14 @@ public function getDevelopmentLicenseKey($store, $scopeType = ScopeInterface::SC
* Get development company code from config
*
* @param $store
* @param $scopeType
* @return string
*/
public function getDevelopmentCompanyCode($store)
public function getDevelopmentCompanyCode($store, $scopeType = ScopeInterface::SCOPE_STORE)
{
return (string)$this->scopeConfig->getValue(
self::XML_PATH_AVATAX_DEVELOPMENT_COMPANY_CODE,
ScopeInterface::SCOPE_STORE,
$scopeType,
$store
);
}
Expand Down
4 changes: 2 additions & 2 deletions Observer/ConfigSaveObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@ protected function checkCredentialsForMode($scopeId, $scopeType, $mode)
if (
$this->config->getAccountNumber($scopeId, $scopeType) != ''
&& $this->config->getLicenseKey($scopeId, $scopeType) != ''
&& $this->config->getCompanyCode($scopeId) != ''
&& $this->config->getCompanyCode($scopeId, $scopeType) != ''
) {
return true;
}
} else {
if (
$this->config->getDevelopmentAccountNumber($scopeId, $scopeType) != ''
&& $this->config->getDevelopmentLicenseKey($scopeId, $scopeType) != ''
&& $this->config->getDevelopmentCompanyCode($scopeId) != ''
&& $this->config->getDevelopmentCompanyCode($scopeId, $scopeType) != ''
) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "classyllama/module-avatax",
"type": "magento2-module",
"version": "1.3.4",
"version": "1.3.5",
"license": "OSL-3.0",
"require": {
"magento/framework": "^100.1.0|101.0.*",
Expand Down

0 comments on commit cf4280b

Please sign in to comment.