Skip to content

Commit 427d417

Browse files
author
Oleksii Korshenko
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - magento-engcom/magento2ce#1149: magento/magento2#NONE: Fix vault_payment_token install script type where column defaults were not set (PR #12965 backport 2.1) (by @p-bystritsky) - #12958: [Backport to 2.1-develop] Fix #9243 - Upgrade ZF components. Zend_Service (by @dverkade) - #12959: [Backport to 2.1-develop] Fix #10812: htaccess Options override (by @dverkade) - #12930: Fix wishlist item getBuyRequest with no options (by @jameshalsall) Fixed GitHub Issues: - #9243: Upgrade ZF components. Zend_Service (reported by @okorshenko) has been fixed in #12958 by @dverkade in 2.1-develop branch Related commits: 1. abc7bc6 - #10812: htaccess Options override (reported by @s3rj1k) has been fixed in #12959 by @dverkade in 2.1-develop branch Related commits: 1. 704960a
2 parents 53d0dab + 8a4caf1 commit 427d417

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

app/code/Magento/Vault/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
9090
'is_active',
9191
Table::TYPE_BOOLEAN,
9292
null,
93-
['nullable' => false, 'dafault' => true],
93+
['nullable' => false, 'default' => true],
9494
'Is active flag'
9595
)->addColumn(
9696
'is_visible',
9797
Table::TYPE_BOOLEAN,
9898
null,
99-
['nullable' => false, 'dafault' => true],
99+
['nullable' => false, 'default' => true],
100100
'Is visible flag'
101101
)->addIndex(
102102
$setup->getIdxName(

app/code/Magento/Wishlist/Model/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public function getProductUrl()
472472
public function getBuyRequest()
473473
{
474474
$option = $this->getOptionByCode('info_buyRequest');
475-
$initialData = $option ? unserialize($option->getValue()) : null;
475+
$initialData = $option ? unserialize($option->getValue()) : [];
476476

477477
if ($initialData instanceof \Magento\Framework\DataObject) {
478478
$initialData = $initialData->getData();

app/code/Magento/Wishlist/Test/Unit/Model/ItemTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,15 @@ public function testGetProduct()
323323
->willReturn($productMock);
324324
$this->assertEquals($productMock, $this->model->getProduct());
325325
}
326+
327+
public function testGetBuyRequestWithNoOption()
328+
{
329+
$buyRequest = $this->model->getBuyRequest();
330+
331+
$this->assertInstanceOf(\Magento\Framework\DataObject::class, $buyRequest);
332+
$this->assertEquals([
333+
'qty' => 0,
334+
'original_qty' => null
335+
], $buyRequest->getData());
336+
}
326337
}

lib/internal/Magento/Framework/CurrencyInterface.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,19 @@ public function isLess($value, $currency = null);
239239
/**
240240
* Returns the set service class
241241
*
242-
* @return \Zend_Service
242+
* @return \Zend_Currency_CurrencyInterface
243+
* @deprecated
244+
* @see \Magento\Directory\Model\Currency\Import\ImportInterface
243245
*/
244246
public function getService();
245247

246248
/**
247249
* Sets a new exchange service
248250
*
249-
* @param string|\Magento\Framework\Locale\CurrencyInterface $service Service class
250-
* @return \Magento\Framework\CurrencyInterface
251+
* @param string|\Zend_Currency_CurrencyInterface $service Service class
252+
* @return \Zend_Currency_CurrencyInterface
253+
* @deprecated
254+
* @see \Magento\Directory\Model\Currency\Import\ImportInterface
251255
*/
252256
public function setService($service);
253257
}

pub/media/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Options All -Indexes
1+
Options -Indexes
22

33
<IfModule mod_php5.c>
44
php_flag engine 0

pub/media/theme_customization/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Options All -Indexes
1+
Options -Indexes
22
<Files ~ "\.xml$">
33
Order allow,deny
44
Deny from all

0 commit comments

Comments
 (0)