Skip to content

Commit

Permalink
Merge pull request #991 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
[EngCom] Public Pull Requests
  • Loading branch information
vrann authored Apr 1, 2017
2 parents 47b5ed2 + 0737b31 commit 26fd5fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,10 @@ private function updateAddressData(Address $address, array $addressData)
$address->setRegionCode($addressData['region']);
$address->setCountryId($addressData['countryCodeAlpha2']);
$address->setPostcode($addressData['postalCode']);

// PayPal's address supposes not saving against customer account
$address->setSaveInAddressBook(false);
$address->setSameAsBilling(false);
$address->setCustomerAddressId(null);
}
}
8 changes: 5 additions & 3 deletions app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,11 @@ protected function calculateDynamicBundleAmount($basePriceValue, $bundleProduct,

foreach ($selectionPriceList as $selectionPrice) {
++$i;
$amountList[$i]['amount'] = $selectionPrice->getAmount();
// always honor the quantity given
$amountList[$i]['quantity'] = $selectionPrice->getQuantity();
if ($selectionPrice) {
$amountList[$i]['amount'] = $selectionPrice->getAmount();
// always honor the quantity given
$amountList[$i]['quantity'] = $selectionPrice->getQuantity();
}
}

/** @var Store $store */
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Catalog/Block/Adminhtml/Product/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ public function getDuplicateUrl()
}

/**
* @deprecated
* @return string
*/
public function getHeader()
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/Catalog/Model/ResourceModel/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,10 @@ public function getIsActiveAttributeId()
*/
public function findWhereAttributeIs($entityIdsFilter, $attribute, $expectedValue)
{
// @codingStandardsIgnoreStart
$serializeData = $this->serializer->serialize($entityIdsFilter);
$entityIdsFilterHash = md5($serializeData);
// @codingStandardsIgnoreEnd

if (!isset($this->entitiesWhereAttributesIs[$entityIdsFilterHash][$attribute->getId()][$expectedValue])) {
$linkField = $this->getLinkField();
Expand Down Expand Up @@ -767,7 +769,6 @@ public function getChildren($category, $recursive = true)
$backendTable = $this->getTable([$this->getEntityTablePrefix(), 'int']);
$connection = $this->getConnection();
$checkSql = $connection->getCheckSql('c.value_id > 0', 'c.value', 'd.value');
$linkField = $this->getLinkField();
$bind = [
'attribute_id' => $attributeId,
'store_id' => $category->getStoreId(),
Expand Down

0 comments on commit 26fd5fb

Please sign in to comment.