Skip to content

Commit 2633e48

Browse files
author
Bukatar
committed
2 parents a42a3fe + 721ee66 commit 2633e48

File tree

110 files changed

+1577
-1454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1577
-1454
lines changed

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@
279279
order allow,deny
280280
deny from all
281281
</Files>
282+
<Files magento_umask>
283+
order allow,deny
284+
deny from all
285+
</Files>
282286

283287
################################
284288
## If running in cluster environment, uncomment this

.htaccess.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@
245245
order allow,deny
246246
deny from all
247247
</Files>
248+
<Files magento_umask>
249+
order allow,deny
250+
deny from all
251+
</Files>
248252

249253
################################
250254
## If running in cluster environment, uncomment this

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
2.0.5
2+
=============
3+
* Fixed bugs:
4+
* Fixed issue with HTML minification and comments
5+
* Fixed issue with cached CAPTCHA
6+
* Fixed issue with images not changing on swatches
7+
* Fixed issue with admin URL being indexed in search engines
8+
* Fixed issue with viewing products from shared wishlists
9+
* Fixed inconsistent data during installation
10+
* Fixed issue with saving custom customer attributes during checkout
11+
* Fixed issue with multiple newsletter subscriptions for same email
12+
* Fixed import issue for products with store code
13+
* GitHub requests:
14+
* [#2795](https://github.com/magento/magento2/pull/2795) -- Fix Notice: Undefined property: Magento\Backend\Helper\Dashboard\Order::$_storeManager
15+
* [#2989](https://github.com/magento/magento2/issues/2989) -- Custom Options not working after editing product
16+
* Various improvements:
17+
* Improved export performance
18+
* Fixed several performance issue with duplicated queries on category and CMS pages
19+
120
2.0.3
221
=============
322
* Fixed bugs:

app/bootstrap.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
error_reporting(E_ALL);
1111
#ini_set('display_errors', 1);
12-
umask(0);
1312

1413
/* PHP version validation */
1514
if (version_compare(phpversion(), '5.5.0', '<') === true) {
@@ -31,6 +30,11 @@
3130
require_once __DIR__ . '/autoload.php';
3231
require_once BP . '/app/functions.php';
3332

33+
/* Custom umask value may be provided in optional mage_umask file in root */
34+
$umaskFile = BP . '/magento_umask';
35+
$mask = file_exists($umaskFile) ? octdec(file_get_contents($umaskFile)) : 002;
36+
umask($mask);
37+
3438
if (!empty($_SERVER['MAGE_PROFILER'])
3539
&& isset($_SERVER['HTTP_ACCEPT'])
3640
&& strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== false

app/code/Magento/AdvancedPricingImportExport/Model/Import/AdvancedPricing.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,15 +531,21 @@ protected function processCountExistingPrices($prices, $table)
531531
{
532532
$existingPrices = $this->_connection->fetchAssoc(
533533
$this->_connection->select()->from(
534-
$this->_connection->getTableName($table),
534+
['t' => $this->_connection->getTableName($table)],
535535
['value_id', 'entity_id', 'all_groups', 'customer_group_id']
536536
)
537+
->joinInner(
538+
['e' => $this->_connection->getTableName('catalog_product_entity')],
539+
't.entity_id = e.entity_id',
540+
['e.sku']
541+
)
542+
->where(
543+
$this->_connection->quoteInto('e.sku IN (?)', array_keys($prices))
544+
)
537545
);
538546
foreach ($existingPrices as $existingPrice) {
539-
foreach ($this->_oldSkus as $sku => $productId) {
540-
if ($existingPrice['entity_id'] == $productId && isset($prices[$sku])) {
541-
$this->incrementCounterUpdated($prices[$sku], $existingPrice);
542-
}
547+
if (isset($prices[$existingPrice['sku']])) {
548+
$this->incrementCounterUpdated($prices[$existingPrice['sku']], $existingPrice);
543549
}
544550
}
545551

app/code/Magento/AdvancedPricingImportExport/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "100.0.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.0.5",
16+
"version": "100.0.6",
1717
"license": [
1818
"OSL-3.0",
1919
"AFL-3.0"

app/code/Magento/Backend/Helper/Dashboard/Order.php

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
namespace Magento\Backend\Helper\Dashboard;
77

8+
use Magento\Framework\App\ObjectManager;
9+
810
/**
911
* Adminhtml dashboard helper for orders
1012
*/
@@ -15,6 +17,11 @@ class Order extends \Magento\Backend\Helper\Dashboard\AbstractDashboard
1517
*/
1618
protected $_orderCollection;
1719

20+
/**
21+
* @var \Magento\Store\Model\StoreManagerInterface
22+
*/
23+
protected $_storeManager;
24+
1825
/**
1926
* @param \Magento\Framework\App\Helper\Context $context
2027
* @param \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection
@@ -41,17 +48,31 @@ protected function _initCollection()
4148
if ($this->getParam('store')) {
4249
$this->_collection->addFieldToFilter('store_id', $this->getParam('store'));
4350
} elseif ($this->getParam('website')) {
44-
$storeIds = $this->_storeManager->getWebsite($this->getParam('website'))->getStoreIds();
51+
$storeIds = $this->getStoreManager()->getWebsite($this->getParam('website'))->getStoreIds();
4552
$this->_collection->addFieldToFilter('store_id', ['in' => implode(',', $storeIds)]);
4653
} elseif ($this->getParam('group')) {
47-
$storeIds = $this->_storeManager->getGroup($this->getParam('group'))->getStoreIds();
54+
$storeIds = $this->getStoreManager()->getGroup($this->getParam('group'))->getStoreIds();
4855
$this->_collection->addFieldToFilter('store_id', ['in' => implode(',', $storeIds)]);
4956
} elseif (!$this->_collection->isLive()) {
5057
$this->_collection->addFieldToFilter(
5158
'store_id',
52-
['eq' => $this->_storeManager->getStore(\Magento\Store\Model\Store::ADMIN_CODE)->getId()]
59+
['eq' => $this->getStoreManager()->getStore(\Magento\Store\Model\Store::ADMIN_CODE)->getId()]
5360
);
5461
}
5562
$this->_collection->load();
5663
}
64+
65+
/**
66+
* Get Store Manager
67+
*
68+
* @return \Magento\Store\Model\StoreManagerInterface
69+
*/
70+
public function getStoreManager()
71+
{
72+
if (!$this->_storeManager) {
73+
$this->_storeManager = ObjectManager::getInstance()->get('Magento\Store\Model\StoreManager');
74+
}
75+
76+
return $this->_storeManager;
77+
}
5778
}

app/code/Magento/Backend/Model/Session/AdminConfig.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
/**
1616
* Magento Backend session configuration
17-
*
18-
* @method Config setSaveHandler()
1917
*/
2018
class AdminConfig extends Config
2119
{

app/code/Magento/Backend/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"magento/framework": "100.0.*"
2222
},
2323
"type": "magento2-module",
24-
"version": "100.0.5",
24+
"version": "100.0.6",
2525
"license": [
2626
"OSL-3.0",
2727
"AFL-3.0"

app/code/Magento/Backup/Model/Fs/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ protected function _hideBackupsForApache()
9191
$filename = '.htaccess';
9292
if (!$this->_varDirectory->isFile($filename)) {
9393
$this->_varDirectory->writeFile($filename, 'deny from all');
94-
$this->_varDirectory->changePermissions($filename, 0640);
9594
}
9695
}
9796

0 commit comments

Comments
 (0)