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

[CatalogPromotion] Add exclusiveness flag #13303

Merged

Conversation

AdamKasp
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
License MIT

@AdamKasp AdamKasp requested a review from a team as a code owner November 18, 2021 09:46
@probot-autolabeler probot-autolabeler bot added the Admin AdminBundle related issues and PRs. label Nov 18, 2021
@AdamKasp AdamKasp force-pushed the add-exclusivness-of-catalog-promotion-v3 branch 2 times, most recently from 84eb3a6 to 31ca767 Compare November 18, 2021 10:28
@probot-autolabeler probot-autolabeler bot added the Documentation Documentation related issues and PRs - requests, fixes, proposals. label Nov 18, 2021
@AdamKasp AdamKasp force-pushed the add-exclusivness-of-catalog-promotion-v3 branch 2 times, most recently from 131bdf0 to 1c4915c Compare November 18, 2021 10:39
@AdamKasp AdamKasp force-pushed the add-exclusivness-of-catalog-promotion-v3 branch from 347e40e to 0b50104 Compare November 22, 2021 10:19
@probot-autolabeler probot-autolabeler bot added the Shop ShopBundle related issues and PRs. label Nov 22, 2021
@AdamKasp AdamKasp force-pushed the add-exclusivness-of-catalog-promotion-v3 branch 6 times, most recently from d8ed706 to 4bda9bd Compare November 23, 2021 11:14
@AdamKasp AdamKasp force-pushed the add-exclusivness-of-catalog-promotion-v3 branch from 4bda9bd to 9d78dca Compare November 24, 2021 18:38
Comment on lines +146 to +151
if (reset($this->appliedPromotions)['is_exclusive'])
{
return true;
}

return false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (reset($this->appliedPromotions)['is_exclusive'])
{
return true;
}
return false;
return reset($this->appliedPromotions)['is_exclusive']);

@GSadee GSadee merged commit f133dc9 into Sylius:master Nov 25, 2021
@GSadee
Copy link
Member

GSadee commented Nov 25, 2021

Thanks, Adam! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs. Documentation Documentation related issues and PRs - requests, fixes, proposals. Shop ShopBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants