Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

FSE - Template: Template changes are not saved #5399

Closed
gigitux opened this issue Dec 16, 2021 · 1 comment
Closed

FSE - Template: Template changes are not saved #5399

gigitux opened this issue Dec 16, 2021 · 1 comment
Assignees
Labels
focus: FSE Work related to prepare WooCommerce for FSE. status: blocker Used on issues or pulls that block work from being released. type: bug The issue/PR concerns a confirmed bug.

Comments

@gigitux
Copy link
Contributor

gigitux commented Dec 16, 2021

Describe the bug

If you save a WooCommerce template and refresh the page, you don't see any changes.

To reproduce

Steps to reproduce the behavior:

Be sure that you have: WordPress 5.9, Gutenberg trunk version, WooCommerce 6.0.0, and WooCommerce Blocks trunk

  1. Go to Template Page on Full Site Editor.
  2. Click on one of the WooCommerce template like Single Product Page.
  3. Add a new block (be sure that you don't add it on the header or footer group).
  4. Save.
  5. Refresh, and you can check that your changes are missing.

Expected behavior

The changes should be visible

Info

It seems that the system saves a new post in the DB and doesn't update the old one. This bug appears after #5375 merged.

Screenshots

Screen.Capture.on.2021-12-15.at.18-44-07.mp4

Environment

WordPress (please complete the following information):

  • Core version: 5.9-beta-3
  • Gutenberg version (if installed): trunk
  • WooCommerce version: [e.g. 3.5.3]: 6.0.0
  • WooCommerce Blocks version: [e.g. 1.3.1]: trunk
@gigitux gigitux added type: bug The issue/PR concerns a confirmed bug. status: blocker Used on issues or pulls that block work from being released. labels Dec 16, 2021
@gigitux gigitux self-assigned this Dec 16, 2021
@Aljullu Aljullu added the focus: FSE Work related to prepare WooCommerce for FSE. label Dec 16, 2021
gigitux added a commit that referenced this issue Dec 17, 2021
Fix id generation for template from file
@gigitux
Copy link
Contributor Author

gigitux commented Dec 17, 2021

This issue is fixed with #5412

@gigitux gigitux closed this as completed Dec 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: FSE Work related to prepare WooCommerce for FSE. status: blocker Used on issues or pulls that block work from being released. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants