Skip to content

Issue with Image roles in Environment with Multiple Store Views and Unchecked "Use Default" Attribute #37744

Open
@carlosyrm

Description

@carlosyrm

Preconditions and environment

  • 2.4.4-p4
  • Clean environment (just magento)

Steps to reproduce

Starting with a clean Magento installation, follow these steps:

  1. Create a new store view.
  2. Create a new simple product and add an image to it.
  3. Navigate to the frontend and verify that the product is visible in all store views.
  4. In the backend, edit the product and change the store view to a particular store view.
  5. Modify an attribute, such as the name, specifically for that store view. Click "Save".
  6. On the frontend, navigate through all store views and verify that the attribute is different in the selected store view.
  7. In the backend, edit the product and select "All Store Views". Upload a new image and click "Save".
  8. Check the frontend in all store views to ensure the new image is displayed.
  9. Edit the product using the "All Store Views" option and update all roles to the new image. Click "Save".
  10. Delete the first image and click "Save".

Expected result

Two expected results:

  1. As result of step 9, the image should take the same roles in all store views.
  2. As result of step 10, the image should be deleted.

Actual result

Two actual results:

  1. Result of Step 9: In the edited store view from steps 4 and 5, the image retains the initial roles and does not reflect the last roles that were set in the "All Store Views" option.
  2. Result of Step 10: The backend prevents the deletion of the image because it is still being used in other roles or contexts.

Additional information

It doesn't matter if the same steps are accomplished using the API.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
    Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
    Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
    Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
    Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Activity

m2-assistant

m2-assistant commented on Jul 10, 2023

@m2-assistant

Hi @carlosyrm. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

self-assigned this
on Jul 11, 2023
m2-assistant

m2-assistant commented on Jul 11, 2023

@m2-assistant

Hi @engcom-Dash. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

engcom-Dash

engcom-Dash commented on Jul 11, 2023

@engcom-Dash
Contributor

@magento give me 2.4-develop instance

magento-deployment-service

magento-deployment-service commented on Jul 11, 2023

@magento-deployment-service

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

engcom-Dash

engcom-Dash commented on Jul 12, 2023

@engcom-Dash
Contributor

Hi @carlosyrm ,

Verified the issue in 2.4-develop instance and the issue is not reproducible,Kindly recheck the behaviour in 2.4-develop instance.
Kindly refer the below screenshots:
1.All the roles assigned in first image
Screenshot 2023-07-12 at 4 20 25 PM
2.All the roles assinged to new image
Screenshot 2023-07-12 at 4 18 30 PM
3.First image deleted successfully in admin as well as Store front
Screenshot 2023-07-12 at 4 20 25 PM
Screenshot 2023-07-12 at 4 49 45 PM

Steps to reproduce:
as per the main description

We are getting expected result which is the new image should taken the same roles in all store views and first image deleted successfully.
Kindly recheck the behaviour in 2.4-develop instance and let us know if we are missing anything!

Thanks

carlosyrm

carlosyrm commented on Jul 12, 2023

@carlosyrm
Author

@magento give me 2.4-develop instance

magento-deployment-service

magento-deployment-service commented on Jul 12, 2023

@magento-deployment-service

Hi @carlosyrm. Thank you for your request. I'm working on Magento instance for you.

carlosyrm

carlosyrm commented on Jul 12, 2023

@carlosyrm
Author

Hi @engcom-Dash

Thank you for taking the time to review my report.

I have successfully reproduced the issue in a 2.4-develop instance, and I have recorded a video demonstrating all the steps in the development environment.

Before recording the video, the only action I took was creating a new store view.

In the video, you will observe that as soon as I set a different attribute for the name in the second store view, the image role begins to disregard the parameters set through the "all store view" option.

Please let me know if you need any further information or if there is anything else I can assist you with.

Screencast_07_12_2023_08.08.56_AM.webm

23 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Admin UIIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.4-p4Indicates original Magento version for the Issue report.Reported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @engcom-Hotel@carlosyrm@engcom-Dash@github-jira-sync-bot

        Issue actions

          Issue with Image roles in Environment with Multiple Store Views and Unchecked "Use Default" Attribute · Issue #37744 · magento/magento2