Skip to content

Commit 5313bb9

Browse files
authored
Merge branch '2.4-develop' into ACPT-1493
2 parents 67ac28d + 29fe909 commit 5313bb9

File tree

61 files changed

+127
-166
lines changed

Some content is hidden

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

61 files changed

+127
-166
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,8 +1877,10 @@ public function toArray(array $arrAttributes = [])
18771877
{
18781878
$data = parent::toArray($arrAttributes);
18791879
$stock = $this->getStockItem();
1880-
if ($stock) {
1880+
if (is_object($stock) && method_exists($stock, 'toArray')) {
18811881
$data['stock_item'] = $stock->toArray();
1882+
} elseif (is_array($stock)) {
1883+
$data['stock_item'] = $stock;
18821884
}
18831885
unset($data['stock_item']['product']);
18841886
return $data;

app/code/Magento/Customer/Model/Attribute/Data/Multiline.php

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

77
/**
88
* Customer Attribute Multiply line Data Model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\Customer\Model\Attribute\Data;
1311

app/code/Magento/Customer/Model/Attribute/Data/Multiselect.php

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

77
/**
88
* Customer Attribute Multiply select Data Model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\Customer\Model\Attribute\Data;
1311

app/code/Magento/Customer/Model/Attribute/Data/Select.php

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

77
/**
88
* Customer Attribute Select Data Model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\Customer\Model\Attribute\Data;
1311

app/code/Magento/Customer/Model/Attribute/Data/Text.php

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

77
/**
88
* Customer Attribute Text Data Model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\Customer\Model\Attribute\Data;
1311

app/code/Magento/Customer/Model/Attribute/Data/Textarea.php

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

77
/**
88
* Customer Attribute Text Area Data Model
9-
*
10-
* @author Magento Core Team <core@magentocommerce.com>
119
*/
1210
namespace Magento\Customer\Model\Attribute\Data;
1311

app/code/Magento/Customer/Model/Config/Backend/Password/Link/Expirationperiod.php

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

88
/**
99
* Customer Reset Password Link Expiration period backend model
10-
*
11-
* @author Magento Core Team <core@magentocommerce.com>
1210
*/
1311
class Expirationperiod extends \Magento\Framework\App\Config\Value
1412
{

app/code/Magento/Customer/Model/Config/Backend/Show/Address.php

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

1010
/**
1111
* Customer Show Address Model
12-
*
13-
* @author Magento Core Team <core@magentocommerce.com>
1412
*/
1513
class Address extends Customer
1614
{

app/code/Magento/Customer/Model/Config/Backend/Show/AddressOnly.php

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

1010
/**
1111
* Customer Show Address Model
12-
*
13-
* @author Magento Core Team <core@magentocommerce.com>
1412
*/
1513
class AddressOnly extends Customer
1614
{

app/code/Magento/Customer/Model/Config/Backend/Show/Customer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
/**
1616
* Customer Show Customer Model
1717
*
18-
* @author Magento Core Team <core@magentocommerce.com>
1918
* @SuppressWarnings(PHPMD.UnusedPrivateField)
2019
*/
2120
class Customer extends \Magento\Framework\App\Config\Value

0 commit comments

Comments
 (0)