Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Correct SendFriend Visibility Check #760

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

pmclain
Copy link
Contributor

@pmclain pmclain commented Jul 2, 2019

Description (*)

The existing check would return an error if sending a product with search only
visibility.

Manual testing scenarios (*)

  1. Create product with search only visibility
  2. Locate product sku using search query
  3. Use send a friend mutation to sent search only product

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)

The existing check would return an error if sending a product with search only
visibility.
$product->getVisibility(),
$this->visibility->getVisibleInCatalogIds()
(int) $product->getVisibility(),
$this->visibility->getVisibleInSiteIds(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The docblock hint for this function's return value is incorrectly string[] proposed fix here magento/magento2#23532

@TomashKhamlai TomashKhamlai added the Progress: ready for qa Add this in any case when you need some feedback, even if automated tests are failing label Jul 4, 2019
@TomashKhamlai TomashKhamlai removed the Progress: ready for qa Add this in any case when you need some feedback, even if automated tests are failing label Jul 10, 2019
@naydav naydav merged commit 1969add into magento:2.3-develop Jul 11, 2019
@ghost
Copy link

ghost commented Jul 11, 2019

Hi @pmclain, 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants