Skip to content

Commit

Permalink
Merge pull request #1287 from magento-south/PRS
Browse files Browse the repository at this point in the history
Fixed issues:

MAGETWO-59997 Shipping address duplicates if entered credit card was incorrect during checkout via Braintree
MAGETWO-70279 Issue with the config merging introduced for the Analytics integration
MAGETWO-70059 Order is not shown in customer account if its Status not visible on Storefront
MAGETWO-59801 [Performance Bug] Tax Rules Form unusable with large # of tax rates
MAGETWO-70280 Catalog Event can't save in the en_GB locale
MAGETWO-70314 [Github] cron:install issues #10040
MAGETWO-69750 An error occurs on the checkout after required custom address attribute added
MAGETWO-70490 Inconsistency between versions in module.xml and UbgradeSchema for CatalogRule Module
MAGETWO-66895 [Github] Cannot skip review page when order placed with Virtual/Gift Card product via PayPal Express Checkout #9042
  • Loading branch information
Oleksii Korshenko authored Jul 6, 2017
2 parents 1a4aa5b + 9a89c48 commit dadf701
Show file tree
Hide file tree
Showing 65 changed files with 2,158 additions and 652 deletions.
29 changes: 0 additions & 29 deletions app/code/Magento/Analytics/Model/Config/Data.php

This file was deleted.

61 changes: 0 additions & 61 deletions app/code/Magento/Analytics/Model/Config/Reader/Xml.php

This file was deleted.

56 changes: 0 additions & 56 deletions app/code/Magento/Analytics/Model/Config/SchemaLocator.php

This file was deleted.

8 changes: 4 additions & 4 deletions app/code/Magento/Analytics/ReportXml/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
namespace Magento\Analytics\ReportXml;

use Magento\Analytics\ReportXml\Config\Data;
use Magento\Framework\Config\DataInterface;

/**
* Class Config
Expand All @@ -15,17 +15,17 @@
class Config implements ConfigInterface
{
/**
* @var Data
* @var DataInterface
*/
private $data;

/**
* Config constructor.
*
* @param Data $data
* @param DataInterface $data
*/
public function __construct(
Data $data
DataInterface $data
) {
$this->data = $data;
}
Expand Down
29 changes: 0 additions & 29 deletions app/code/Magento/Analytics/ReportXml/Config/Data.php

This file was deleted.

56 changes: 0 additions & 56 deletions app/code/Magento/Analytics/ReportXml/Config/Reader/Xml.php

This file was deleted.

51 changes: 0 additions & 51 deletions app/code/Magento/Analytics/ReportXml/Config/SchemaLocator.php

This file was deleted.

34 changes: 32 additions & 2 deletions app/code/Magento/Analytics/ReportXml/DB/ColumnsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Magento\Analytics\ReportXml\DB;

use Magento\Framework\App\ResourceConnection;
use Magento\Framework\DB\Sql\ColumnValueExpression;

/**
Expand All @@ -20,14 +21,41 @@ class ColumnsResolver
*/
private $nameResolver;

/**
* @var ResourceConnection
*/
private $resourceConnection;

/**
* @var \Magento\Framework\DB\Adapter\AdapterInterface
*/
private $connection;

/**
* ColumnsResolver constructor.
*
* @param NameResolver $nameResolver
* @param ResourceConnection $resourceConnection
*/
public function __construct(
NameResolver $nameResolver
NameResolver $nameResolver,
ResourceConnection $resourceConnection
) {
$this->nameResolver = $nameResolver;
$this->resourceConnection = $resourceConnection;
}

/**
* Returns connection
*
* @return \Magento\Framework\DB\Adapter\AdapterInterface
*/
private function getConnection()
{
if (!$this->connection) {
$this->connection = $this->resourceConnection->getConnection();
}
return $this->connection;
}

/**
Expand All @@ -54,7 +82,9 @@ public function getColumns(SelectBuilder $selectBuilder, $entityConfig)
$prefix = ' DISTINCT ';
}
$expression = new ColumnValueExpression(
strtoupper($attributeData['function']) . '(' . $prefix . $tableAlias . '.' . $columnName . ')'
strtoupper($attributeData['function']) . '(' . $prefix
. $this->getConnection()->quoteIdentifier($tableAlias . '.' . $columnName)
. ')'
);
} else {
$expression = $tableAlias . '.' . $columnName;
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Analytics/ReportXml/DB/ConditionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private function getCondition(SelectBuilder $selectBuilder, $tableName, $conditi
) {
$expression = $columns[$condition['attribute']];
} else {
$expression = $tableName . '.' . $condition['attribute'];
$expression = $this->getConnection()->quoteIdentifier($tableName . '.' . $condition['attribute']);
}
return sprintf(
$this->conditionMap[$condition['operator']],
Expand Down Expand Up @@ -161,6 +161,6 @@ public function getFilter(SelectBuilder $selectBuilder, $filterConfig, $aliasNam
}
$filtersParts[] = '(' . implode(' ' . strtoupper($glue) . ' ', $parts) . ')';
}
return implode(' AND ', $filtersParts);
return implode(' OR ', $filtersParts);
}
}
Loading

0 comments on commit dadf701

Please sign in to comment.