Skip to content

Price attribute is enabled for dynamic price type on bundle product edit page in admin #23890

Closed
@katesuykovskaya

Description

@katesuykovskaya

Preconditions (*)

  1. Magento 2.3.1 CE

Steps to reproduce (*)

  1. go to admin panel Stores -> Configuration -> Catalog -> Catalog -> Product Alerts, enable either Allow Alert When Product Comes Back in Stock = Yes or Allow Alert When Product Price Changes
  2. go to Catalog -> Products, edit bundle product with Dynamic price type

Expected result (*)

  1. Price attribute should be disabled, since Dynamic price is enabled
    image

Actual result (*)

  1. Price is enabled
    image

Reason

After some debugging I found that issue is in vendor/magento/module-bundle/Ui/DataProvider/Product/Form/Modifier/BundlePrice.php line 64 the code snippet
$this->arrayManager->findPath( ProductAttributeInterface::CODE_PRICE, $meta, null, 'children' )
returns alerts/children/price/arguments/data/config (because Alerts feature is enabled), instead of product-details/children/container_price/children/price/arguments/data/config that is the actual path of price attribute, as result the attribute field in not being disabled

Metadata

Metadata

Labels

Component: BundleComponent: CatalogComponent: ProductAlertFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions