MDVA-33516 patch: edit bundled product Requisition List error

Last update: 2023-07-27
  • Topics:
  • B2B
    View more on this topic
  • Products
    View more on this topic
  • Created for:
  • Admin

The MDVA-33516 patch fixes the issue where when editing the bundle product type from the Requisition List, you are redirected to a requisition list item error page. This patch is available when the Quality Patches Tool (QPT) 1.0.14 is installed. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version:

Adobe Commerce on cloud infrastructure 2.3.4

Compatible with Adobe Commerce versions:

Adobe Commerce on cloud infrastructure 2.3.0 - 2.3.5-p2

NOTE

The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Error editing bundled products on Requisition List.

Prerequisites:

  • B2B is installed.
  • Requisition List is enabled.

Steps to reproduce:

  1. Create a bundled product with two simple products.
  2. Go to the bundled product page, click on the Customize and Add to Cart button.
  3. Select one of the options from the dropdown, click on Add to Requisition List to create a new requisition list. For detailed steps, refer to Magento User Guide > My Requisition Lists > Create a requisition list in our user guide.
  4. Go to the newly created Requisition List (My Account > My Requisition Lists).
  5. Click the View button in the Actions column.
  6. Click the Edit button.

Expected Results:

No errors.

Actual Results:

“Your Customization” page, containing a picture of the bundled product, price, and the following error message:

Fatal error: Uncaught Error: Call to a member function isAvailableForCompare() on null in /var/www/html/var/view_preprocessed/pub/static/vendor/magento/module-catalog/view/frontend/templates/product/view/addto/compare.phtml:1 Stack trace: #0 /var/www/html/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /var/www/html/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Catalog\Block\Product\View\AddTo\Compare), '/var/www/html/v...', Array) #2 /var/www/html/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/var/www/html/v...') #3 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\Template->_toHtml() #4 /var/www/html/vendor/magento/framework/View/Element/AbstractBlock.php(1103): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element   {closure} () #5 /var/www/html/vendor/magento/framework/View/Element/ in /var/www/html/var/view_preprocessed/pub/static/vendor/magento/module-catalog/view/frontend/templates/product/view/addto/compare.phtml
  on line 1

Apply the patch

To apply individual patches, use the following links, depending on your Adobe Commerce product:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.

On this page