QUALITY PATCH

MDVA-43451: The user is unable to set Pricing and Structure for a shared catalog

The user is unable to set Pricing and Structure for a shared catalog. Quality patch MDVA-43451 for magento/module-shared-catalog applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.4-p18.

Categories
B2B
Components
magento/module-shared-catalog
Origin
adobe-commerce-support
Since QPT
1.1.13

Issue

The user is unable to set Pricing and Structure for a shared catalog. The following message is displayed: The store that was requested wasn't found. Verify the store and try again.

Steps to reproduce

1. Create a custom website. The ids of the websites should be 0, 1, 2. 1. Create one store under the above website. The ids of the stores should be 0,1,2. 1. Create three store views for the above store. The ids of the store views should be 0,1, 2, 3, 4. 1. Delete the store view with id 2. Now the store table should look similar to the below table. MariaDB [m24devinvb2b]> SELECT store_id,code,website_id,group_id,name FROM store; +----------+----------------+------------+----------+--------------------+ | store_id | code | website_id | group_id | name | +----------+----------------+------------+----------+--------------------+ | 0 | admin | 0 | 0 | Admin | | 1 | default | 1 | 1 | Default Store View | | 3 | web1storeview2 | 2 | 2 | web1storeview2 | | 4 | web1storeview3 | 2 | 2 | web1storeview3 | +----------+----------------+------------+----------+--------------------+ 1. Create a new shared catalog. 1. When configuring Price and Structure, select the store created in Step 2. 1. Save the shared catalog.

Adobe's page lists 2.4.3 - 2.4.4 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.5.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-43451. On Cloud, add MDVA-43451 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-43451/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-shared-catalog

magento/magento2-b2b-base >=1.3.2 <1.3.3-p10

Magento Open Source
—
Adobe Commerce
2.4.4-p9, 2.4.4-p8, 2.4.4-p7, 2.4.4-p6, 2.4.4-p5, 2.4.4-p4, 2.4.4-p3, 2.4.4-p2, 2.4.4-p1, 2.4.4, 2.4.3-p3, 2.4.3-p2, 2.4.3-p1, 2.4.3
Replaced with
ACSD-57570
Patch file
patches/commerce/MDVA-43451_1.3.2-p1.patch
  • vendor/magento/module-shared-catalog/Controller/Adminhtml/SharedCatalog/Configure/Save.php
  • vendor/magento/module-shared-catalog/Model/Configure/Category.php
  • vendor/magento/module-shared-catalog/Plugin/Backend/Block/Adminhtml/Store/SwitcherRolePermissions.php (added)
  • vendor/magento/module-shared-catalog/Plugin/Ui/DataProvider/WebsiteRolePermissions.php (added)
  • vendor/magento/module-shared-catalog/Ui/DataProvider/Configure/AbstractDataProvider.php
  • vendor/magento/module-shared-catalog/etc/adminhtml/di.xml
  • vendor/magento/module-shared-catalog/view/adminhtml/web/js/grid/filters/configure/filters.js

magento/magento2-b2b-base >=1.3.3-p10 <1.3.4

Magento Open Source
—
Adobe Commerce
2.4.4-p18, 2.4.4-p17, 2.4.4-p16, 2.4.4-p15, 2.4.4-p14, 2.4.4-p13, 2.4.4-p12, 2.4.4-p11, 2.4.4-p10
Patch file
patches/commerce/MDVA-43451_1.3.2-p1.patch
  • vendor/magento/module-shared-catalog/Controller/Adminhtml/SharedCatalog/Configure/Save.php
  • vendor/magento/module-shared-catalog/Model/Configure/Category.php
  • vendor/magento/module-shared-catalog/Plugin/Backend/Block/Adminhtml/Store/SwitcherRolePermissions.php (added)
  • vendor/magento/module-shared-catalog/Plugin/Ui/DataProvider/WebsiteRolePermissions.php (added)
  • vendor/magento/module-shared-catalog/Ui/DataProvider/Configure/AbstractDataProvider.php
  • vendor/magento/module-shared-catalog/etc/adminhtml/di.xml
  • vendor/magento/module-shared-catalog/view/adminhtml/web/js/grid/filters/configure/filters.js

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.