Skip to content

Fix cms block save for specified store view, when another block with same ID is saved for 'All Store Views' #23255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

vovayatsyuk
Copy link
Member

Description

Since Magento 2.3.1 I'm not able to save CMS block when another block with the same ID is saved for 'All store views'.

Manual testing scenarios

  1. Create a CMS block test for 'All Store Views'
  2. Try to create another one test for specific store view only
  3. An error will be shown: "A block identifier with the same properties already exists in the selected store."

Questions or comments

This PR is just a git revert of the following commit: 1f743bd

If someone knows what was this commit about I'll be glad to fix it properly.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Jun 14, 2019

Hi @vovayatsyuk. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@ghost ghost assigned sidolov Sep 4, 2019
@sidolov sidolov added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Sep 4, 2019
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5780 has been created to process this Pull Request

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

Before:
before

After:
after

@engcom-Foxtrot
Copy link
Contributor

@magento run all tests

@Munktells
Copy link

Munktells commented Nov 8, 2019

Can someone please clarify the status of this issue, is it going to be fixed, or is it closed? We are using the same CMS Block identifiers, to be able to use child themes, and this stopped working after the last upgrade to 2.3.3.

mag1

mag2

@sidolov or @vovayatsyuk do you know or can tell?

@sidolov sidolov changed the base branch from 2.3-develop to 2.4-develop December 5, 2019 17:20
@ihor-sviziev
Copy link
Contributor

Hi @engcom-Foxtrot,
Could you explain why this PR was sent to "on hold" status? What's the current status?

@ihor-sviziev ihor-sviziev self-assigned this Feb 14, 2020
@ihor-sviziev
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev. Thank you for your request. I'm working on Magento 2.4-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, here is your Magento instance.
Admin access: https://i-23255-2-4-develop.instances.magento-community.engineering/admin_0477
Login: 87f49478 Password: cda821a74acb
Instance will be terminated in up to 3 hours.

@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Feb 14, 2020

Hi @vovayatsyuk,

I just tried to reproduce this issue on 2.4-develop branch - I was able to create 2 cms blocks without any issues.
image

Looks like this issue was fixed in c8baed5 , so I'm closing your PR.

Thank yo for contribution!

@m2-assistant
Copy link

m2-assistant bot commented Feb 14, 2020

Hi @vovayatsyuk, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@ihor-sviziev ihor-sviziev added the Fixed in 2.4.x The issue has been fixed in 2.4-develop branch label Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests Component: Cms Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Progress: on hold Release Line: 2.4
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants