Skip to content

Commit da77f8f

Browse files
author
olysenko
committed
MAGETWO-73527: [API] catalogProductAttributeRepository does not return "frontend_labels" value
1 parent d6e5ecc commit da77f8f

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ public function save(\Magento\Catalog\Api\Data\ProductAttributeInterface $attrib
123123
}
124124

125125
$this->updateDefaultFrontendLabel($attribute, $existingModel);
126-
127126
} else {
128127
$attribute->setAttributeId(null);
129128

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ public function setDefaultFrontendLabel($defaultFrontendLabel)
12291229
*/
12301230
public function getFrontendLabels()
12311231
{
1232-
if ($this->getData(self::FRONTEND_LABELS) == null){
1232+
if ($this->getData(self::FRONTEND_LABELS) == null) {
12331233
$attributeId = $this->getAttributeId();
12341234
$storeLabels = $this->_getResource()->getStoreLabelsByAttributeId($attributeId);
12351235

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ protected function _beforeSave(AbstractModel $object)
176176
$this->setStoreLabels($object, $frontendLabel);
177177
}
178178

179-
180179
/**
181180
* @todo need use default source model of entity type !!!
182181
*/

0 commit comments

Comments
 (0)