magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.43k stars 9.29k forks source link

Default Product Attribute Settings Issue #38703

Open FluidGuy opened 3 months ago

FluidGuy commented 3 months ago

Preconditions and environment

Steps to reproduce

  1. Go into admin view

  2. Select Stores in admin side panel

  3. Select product under attributes

    Scenario 1:

  4. Select an attribute to edit which has Catalog Input Type for Store Owner is Visual swatch or dropdown

  5. If the "is default" option is selected, there is no way to set the attribute to no longer have a default option

Scenario 2:

  1. Select an attribute to edit which has Catalog Input Type for Store Owner is Multiple Select
  2. If you deselect the default option then save or save and continue it still is set as the default
  3. If you select multiple options as default and deselect the default options then save or save and continue all the options are selected as default

Expected result

Scenario 1: If a default is selected, there would be a way to unselect having a default set Scenario 2: If you deselect the default option then save or save and continue it should removed from default

Actual result

Scenario 1: Once a default is set, there is no way to turn defaults off for that option Scenario 2: Once a default is set, after we deselect it , its never saved

Additional information

image See how a default is set to the 1675 psi option, now this attribute will always have some default set and it cannot be changed to not be on by default

Release note

No response

Triage and priority

m2-assistant[bot] commented 3 months ago

Hi @FluidGuy. 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:

FluidGuy commented 3 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 3 months ago

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

magento-deployment-service[bot] commented 3 months ago

Hi @FluidGuy, here is your Magento Instance: https://af3515771dceec625d611020de141a44.instances-prod.magento-community.engineering Admin access: https://af3515771dceec625d611020de141a44.instances-prod.magento-community.engineering/admin_b388 Login: 44d7ece2 Password: eb48b187f2c8

FluidGuy commented 3 months ago

The issue occurs in the vanilla version, if you deselect the default option then save or save and continue it still is set as the default

m2-assistant[bot] commented 3 months ago

Hi @engcom-Delta. 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: :point_down:

engcom-Delta commented 3 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 3 months ago

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

magento-deployment-service[bot] commented 3 months ago

Hi @engcom-Delta, here is your Magento Instance: https://af3515771dceec625d611020de141a44.instances-prod.magento-community.engineering Admin access: https://af3515771dceec625d611020de141a44.instances-prod.magento-community.engineering/admin_81ea Login: b8c4153b Password: 3499340bf85a

engcom-Delta commented 3 months ago

@magento give me 2.4.7 instance

magento-deployment-service[bot] commented 3 months ago

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

magento-deployment-service[bot] commented 3 months ago

Hi @engcom-Delta, here is your Magento Instance: https://58e234b4d013605aaa4f4296f10c060d.instances-prod.magento-community.engineering Admin access: https://58e234b4d013605aaa4f4296f10c060d.instances-prod.magento-community.engineering/admin_2fb3 Login: 0d5bc15c Password: d84969deecff

engcom-Delta commented 3 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 3 months ago

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

magento-deployment-service[bot] commented 3 months ago

Hi @engcom-Delta, here is your Magento Instance: https://af3515771dceec625d611020de141a44.instances-prod.magento-community.engineering Admin access: https://af3515771dceec625d611020de141a44.instances-prod.magento-community.engineering/admin_edc9 Login: 975fcdd0 Password: b93513674884

engcom-Delta commented 3 months ago

Hi @FluidGuy ,

Verified the issue on 2.4-develop, 2.4.7 and it is reproducible.

Hence, Confirming the issue.

Steps to reproduce:-

1.Go into admin view 2.Select Stores in admin side panel 3.Select product under attributes

Scenario 1:

4.Select an attribute to edit which has Catalog Input Type for Store Owner is Visual swatch or dropdown 5.If the "is default" option is selected, there is no way to set the attribute to no longer have a default option

Scenario 2:

6.Select an attribute to edit which has Catalog Input Type for Store Owner is Multiple Select 7.If you deselect the default option then save or save and continue it still is set as the default 8.If you select multiple options as default and deselect the default options then save or save and continue all the options are selected as default

Go into admin view

Screenshot 2024-05-08 at 2 06 21 PM

Select Stores in admin side panel

Screenshot 2024-05-08 at 2 06 42 PM

Select product under attributes

Screenshot 2024-05-08 at 2 07 17 PM

Select an attribute to edit which has Catalog Input Type for Store Owner is Multiple Select

Screenshot 2024-05-09 at 6 27 46 PM

Deselected

Screenshot 2024-05-09 at 6 28 13 PM

Saved

Screenshot 2024-05-09 at 6 28 21 PM

If you deselect the default option then save or save and continue it still is set as the default

Screenshot 2024-05-09 at 6 28 30 PM

multiple option selected as default and after deselecting both , its not saved

Screenshot 2024-05-09 at 6 34 01 PM

Select an attribute to edit which has Catalog Input Type for Store Owner is Visual swatch or dropdown

Screenshot 2024-05-09 at 6 28 55 PM Screenshot 2024-05-09 at 6 41 07 PM

If the "is default" option is selected, there is no way to set the attribute to no longer have a default option, We have to select another option to deselect another

Screenshot 2024-05-09 at 6 29 05 PM
github-jira-sync-bot commented 3 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11932 is successfully created for this GitHub issue.

m2-assistant[bot] commented 3 months ago

:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

rostilos commented 1 month ago

@magento I am working on this