[仅限PaaS]{class="badge informative" title="仅适用于云项目(Adobe管理的PaaS基础架构)和内部部署项目上的Adobe Commerce 。"}
ACSD-68615:缺少订单ID时出现库存预留补偿CLI异常
ACSD-68615修补程序修复了当处理的组合缺少订单ID时,库存预留补偿CLI显示异常的问题。 安装Quality Patches Tool (QPT) 1.1.75时,此修补程序可用。 修补程序ID为ACSD-68615。 请注意,此问题计划在Adobe Commerce 2.4.9中修复。
受影响的产品和版本
为Adobe Commerce版本创建了修补程序:
- Adobe Commerce(所有部署方法) 2.4.6-p12
与Adobe Commerce版本兼容:
- Adobe Commerce(所有部署方法) 2.4.4 - 2.4.8-p3
NOTE
该修补程序可能适用于具有新Quality Patches Tool发行版本的其他版本。 要检查修补程序是否与您的Adobe Commerce版本兼容,请将
magento/quality-patches包更新到最新版本,并在Quality Patches Tool:搜索修补程序页面上检查兼容性。 使用修补程序ID作为搜索关键字来查找修补程序。问题
如果处理的组合缺少订单ID,则库存预留补偿CLI会显示异常。
重现步骤:
运行以下命令:
bin/magento inventory:reservation:create-compensations 000000003:Test:-1:3
预期的结果:
未返回错误。 已进行验证以确保指定的订单和产品存在,并且已跳过任何不存在的订单或产品的命令。
实际结果:
There is an error in app/code/Magento/InventoryReservationCli/Command/Input/GetReservationFromCompensationArgument.php at line: 105
Call to a member function getEntityId() on false#0 app/code/Magento/InventoryReservationCli/Command/CreateCompensations.php(136):
应用修补程序
要应用单独的修补程序,请根据您的部署方法使用以下链接:
- Adobe Commerce或Magento Open Source内部部署: Quality Patches Tool 指南中的>使用情况Quality Patches Tool。
- 云基础架构上的Adobe Commerce:云基础架构上的Commerce指南中的升级和修补程序>应用修补程序。
相关阅读
要了解有关Quality Patches Tool的更多信息,请参阅:
recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3