【问题标题】:Magento 2 - Category attributes save to wrong store IDMagento 2 - 类别属性保存到错误的商店 ID
【发布时间】:2019-11-22 10:50:30
【问题描述】:

我正在单一商店模式

运行最新的 Magento 2 CE (2.3.3)

当我在 Magento 2 管理员中编辑类别的属性时,它会保存到错误的商店 ID。

数据库显示属性,在本例中为内容,存储 ID 0 而不是存储 ID 1。

SELECT * FROM catalog_category_entity_text WHERE entity_id = 27 AND attribute_id = 47;

显示如下数据:

+----------+--------------+----------+-----------+--------------+
| value_id | attribute_id | store_id | entity_id | value        |
+----------+--------------+----------+-----------+--------------+
|      444 |           47 |        0 |        27 | <p>Test3</p> |
+----------+--------------+----------+-----------+--------------+

虽然它应该显示:

+----------+--------------+----------+-----------+--------------+
| value_id | attribute_id | store_id | entity_id | value        |
+----------+--------------+----------+-----------+--------------+
|      444 |           47 |        0 |        27 | <p>Test3</p> |
|      445 |           47 |        1 |        27 | <p>Test3</p> |
+----------+--------------+----------+-----------+--------------+

我读过this question。我确认我已经完成了接受答案中的所有步骤。

different answer 对同一个问题讨论了手动编辑数据库以包含存储 1 的行。我确认这是可行的,但它当然不是一个选项。我们不能要求我们的客户手动编辑数据库。

有什么想法吗?

【问题讨论】:

    标签: php magento2


    【解决方案1】:

    对我来说看起来像一个错误,请发布步骤以重现 https://github.com/magento/magento2/issues 因为我没有看到当前打开的任何问题,但我记得一些与管理范围相关的其他问题,所以这个问题仍然无法正常工作。

    【讨论】:

      猜你喜欢
      • 2015-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-11
      相关资源
      最近更新 更多