Skip to content

Commit 9d824af

Browse files
committed
ENGCOM-2998: Adding trimming sku value function to sku backend model. #18019. Fix static tests.
1 parent 10d928b commit 9d824af

File tree

2 files changed

+13
-7
lines changed
  • app/code/Magento/Catalog

2 files changed

+13
-7
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Sku.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Catalog product SKU backend attribute model
9-
*
10-
* @author Magento Core Team <[email protected]>
11-
*/
127
namespace Magento\Catalog\Model\Product\Attribute\Backend;
138

149
use Magento\Catalog\Model\Product;
1510

11+
/**
12+
* Catalog product SKU backend attribute model.
13+
*/
1614
class Sku extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
1715
{
1816
/**
@@ -130,6 +128,8 @@ protected function _getLastSimilarAttributeValueIncrement($attribute, $object)
130128
}
131129

132130
/**
131+
* Remove extra spaces from attribute value before save.
132+
*
133133
* @param Product $object
134134
* @return void
135135
*/

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/General.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ public function __construct(
5858
}
5959

6060
/**
61-
* {@inheritdoc}
61+
* Customize number fields for advanced price and weight fields.
62+
*
6263
* @since 101.0.0
64+
* @param array $data
65+
* @return array
6366
* @throws \Magento\Framework\Exception\NoSuchEntityException
6467
*/
6568
public function modifyData(array $data)
@@ -130,8 +133,11 @@ protected function customizeAdvancedPriceFormat(array $data)
130133
}
131134

132135
/**
133-
* {@inheritdoc}
136+
* Customize product form fields.
137+
*
134138
* @since 101.0.0
139+
* @param array $meta
140+
* @return array
135141
*/
136142
public function modifyMeta(array $meta)
137143
{

0 commit comments

Comments
 (0)