Skip to content
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

Product attribute creation page handles Storefront tab visibility wrong #11770

Merged
merged 4 commits into from
Nov 6, 2017

Conversation

euronetzrt
Copy link

@euronetzrt euronetzrt commented Oct 26, 2017

Description

With or without Swatches module, the Storefront tab is not showing up if it was hidden earlier and the current attribute type has some hidden fields.

The fix contains both the solution for Magento_Catalog and Magento_Swatches.

Manual testing scenarios

For the testing you should install a third party module (like https://github.com/PartBerlin/Decimal)
Steps:
Scenario A: without Magento_Swatches

  1. disable module Magento_Swatches
  2. try to add a product attribute on admin
  3. select Media Image input type, it hides Storefront properties
  4. select Decimal (comes from PartBerlin module) - without the fix, Storefront properties not comes up

Scenario B: with Magento_Swatches

  1. enable module Magento_Swatches
  2. try to add a product attribute on admin
  3. select Media Image input type, it hides Storefront properties
  4. select Decimal (comes from PartBerlin module) - without the fix, Storefront properties not comes up

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 on Travis CI are green)

Euronet Hungary Ltd added 2 commits October 26, 2017 12:59
…ut types with hidden fields with (Magento_Swatches enabled)

y
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Oct 26, 2017

CLA assistant check
All committers have signed the CLA.

@dmanners dmanners self-assigned this Oct 30, 2017
@dmanners dmanners added this to the October 2017 milestone Oct 30, 2017
Copy link
Contributor

@dmanners dmanners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to variable naming to remove the _

@@ -196,9 +196,11 @@ function switchDefaultValueField()

<?php foreach ($this->helper('Magento\Catalog\Helper\Data')->getAttributeHiddenFields() as $type => $fields): ?>
case '<?= /* @escapeNotVerified */ $type ?>':
var is_front_tab_hidden = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change this variable to isFrontTabHidden to match the rest of the file.

@okorshenko okorshenko modified the milestones: October 2017, November 2017 Nov 1, 2017
@magento-team magento-team merged commit e8877c3 into magento:2.2-develop Nov 6, 2017
magento-team pushed a commit that referenced this pull request Nov 6, 2017
magento-team pushed a commit that referenced this pull request Nov 6, 2017
[EngCom] Public Pull Requests - 2.2-develop
 - MAGETWO-83278: Add validation for number of street lines #12013
 - MAGETWO-83277: [backport 2.2] Magento 2 Store Code validation regex: doesn't support uppercase letters in store code #12011
 - MAGETWO-82991: Product attribute creation page handles Storefront tab visibility wrong #11770
 - MAGETWO-82976: Update wrong layout update xml handle installed in CMS Home Page by d… #11863
 - MAGETWO-82952: Check attribute unique between same fields in magento commerce #11620
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants