从Magento信息库获取修复程序到我的项目 [英] Get Fix from Magento repository to my project

查看:114
本文介绍了从Magento信息库获取修复程序到我的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题.如何下载此修补程序中的更改: https://github.com/magento/magento2/commit/1e78fe2e37af0012b7f60b29c658221b8ab8> > 我项目中的

Magento版本是 2.1.2 ,我对此异常有疑问:

可配置产品"44583"没有子产品

那么,如何才能仅将此修补程序下载到我的存储库中?

您可以使用 composer-patch 应用Magento修复程序.要使用它,您可以执行以下步骤:

  1. 安装作曲家补丁:

    composer需要cweagans/composer-patches

  2. 此处下载补丁程序并编辑并拆分该补丁程序像这样:

  3. 打开 your_magento_install_dir/composer.json 并编辑额外"节点以应用补丁,如下所示:

    "extra": {
    "magento-force": "override",
    "patches": {
      "magento/module-catalog": {
        "Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
      },
      "magento/module-configurable-product": {
        "Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
      },
    }
    

    }

我希望这能解决您的问题

谢谢

I have a question. How can I download the changes in this hotfix: https://github.com/magento/magento2/commit/1e78fe2e37af0012b7f60b29c658221b8ab8467b

Version Magento in my project is 2.1.2 and I have a problem with this exception:

Configurable product "44583" does not have sub-products

So, How can I download only this fix to my repository?

解决方案

You can use composer-patch to apply Magento fix. To use it, you can do the following steps:

  1. Install composer patch:

    composer require cweagans/composer-patches

  2. Download your patch here and edit and split that patch to something like this:

  3. Open your_magento_install_dir/composer.json and edit "extra" node to apply your patch like this:

    "extra": {
    "magento-force": "override",
    "patches": {
      "magento/module-catalog": {
        "Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
      },
      "magento/module-configurable-product": {
        "Fix: https://github.com/magento/magento2/issues/5762": "patches/your_patch.patch"
      },
    }
    

    }

I hope this will solve your problem

Thanks

这篇关于从Magento信息库获取修复程序到我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆