Skip to content

Commit 95d5938

Browse files
committed
MAGETWO-48914: Stabilize PR
- Added label to dynamic price for bundle;
1 parent 6af768d commit 95d5938

File tree

2 files changed

+4
-1
lines changed
  • app/code/Magento/Bundle/Ui/DataProvider/Product/Form/Modifier
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product

2 files changed

+4
-1
lines changed

app/code/Magento/Bundle/Ui/DataProvider/Product/Form/Modifier/BundlePrice.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function modifyMeta(array $meta)
6363
'sortOrder' => self::SORT_ORDER,
6464
'formElement' => Form\Element\Checkbox::NAME,
6565
'componentType' => Form\Field::NAME,
66+
'label' => __('Dynamic Price'),
6667
'prefer' => 'toggle',
6768
'additionalClasses' => 'admin__field-x-small',
6869
'templates' => ['checkbox' => 'ui/form/components/single/switcher'],

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/ProductForm.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ public function addNewAttribute($sectionName = 'product-details')
294294
$this->openSection($sectionName);
295295
$section->addNewAttribute($sectionName);
296296
} else {
297-
throw new \Exception("$sectionName hasn't 'Add attribute' button or is not instance of ProductSection class.");
297+
throw new \Exception(
298+
"$sectionName hasn't 'Add attribute' button or is not instance of ProductSection class."
299+
);
298300
}
299301
}
300302
}

0 commit comments

Comments
 (0)