ACSD-66965: Print option on Requisition List page causes an error
The ACSD-66965 patch fixes the issue where the Print option on the Requisition List page causes an error. This patch is available when the Quality Patches Tool (QPT) 1.1.68 is installed. The patch ID is ACSD-66965. Please note that this issue is scheduled to be fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.4.9.
Affected products and versions
The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.8
Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:
- ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.7-p3 - 2.4.8-p1
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
Print option on the Requisition List page causes an error due to a null object reference in Grid.php
.
Steps to reproduce:
- Go to Stores > Settings > Configuration > General > B2B Features.
- Set Enable Company, Enable Shared Catalog and Enable Requisition List to
Yes
. - Create two simple products.
- Log in to the storefront and open the My Account page.
- Create a requisition list.
- Assign both products to the requisition list.
- Access the requisition list and list the products.
- Click Print.
Expected results:
The Print option on the Requisition List page displays the print preview without errors.
Actual results:
The following error message appears: An error has happened during application run. See exception log for details.
Call to a member function setCollection() on null in /vendor/magento/module-requisition-list/Block/Requisition/View/Items/Grid.php:146
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- ÃÛ¶¹ÊÓÆµ Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- ÃÛ¶¹ÊÓÆµ Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.