Skip to content

Commit 4e67226

Browse files
committed
MAGETWO-63657: [Backport] - category_ids attribute scope dropdown - for 2.0
1 parent 0febbc1 commit 4e67226

File tree

2 files changed

+6
-3
lines changed
  • app/code/Magento/Catalog

2 files changed

+6
-3
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Advanced.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class Advanced extends Generic
3939
protected $disableScopeChangeList;
4040

4141
/**
42-
* @var PropertyLocker
42+
* Disable form fields.
43+
*
44+
* @var \Magento\Eav\Block\Adminhtml\Attribute\PropertyLocker PropertyLocker
4345
*/
4446
private $propertyLocker;
4547

@@ -275,7 +277,7 @@ private function getAttributeObject()
275277
}
276278

277279
/**
278-
* Get property locker
280+
* Get property locker.
279281
*
280282
* @return PropertyLocker
281283
*/
@@ -284,6 +286,7 @@ private function getPropertyLocker()
284286
if (null === $this->propertyLocker) {
285287
$this->propertyLocker = ObjectManager::getInstance()->get(PropertyLocker::class);
286288
}
289+
287290
return $this->propertyLocker;
288291
}
289292
}

app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Product/Attribute/Edit/Tab/AdvancedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function setUp()
6161
$this->propertyLocker = $this->getMock(PropertyLocker::class, [], [], '', false);
6262

6363
$this->block = $objectManager->getObject(
64-
'Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Advanced',
64+
\Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Advanced::class,
6565
[
6666
'registry' => $this->registry,
6767
'formFactory' => $this->formFactory,

0 commit comments

Comments
 (0)