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

Fix notice when there are no sales rules for a given situation #1326

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

aredridel
Copy link
Contributor

@aredridel aredridel commented Dec 3, 2020

Description (*)

When there are no sales rules for a given combination of website, customer group and coupon code, a notice is generated. This checks more carefully to not emit the notice and just return null.

Manual testing scenarios (*)

I'm not sure how to trigger the code path without third party extension code.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@github-actions github-actions bot added the Component: SalesRule Relates to Mage_SalesRule label Dec 3, 2020
kiatng
kiatng previously approved these changes Dec 4, 2020
colinmollenhour
colinmollenhour previously approved these changes Dec 7, 2020
@sreichel sreichel dismissed stale reviews from colinmollenhour and kiatng via 77137eb January 10, 2021 01:36
@aredridel
Copy link
Contributor Author

Is there more that needs to be done to get this merged?

@Flyingmana Flyingmana merged commit c759cf3 into OpenMage:1.9.4.x Apr 29, 2021
@github-actions
Copy link
Contributor

Unit Test Results

1 files  1 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌
2 runs  2 ✔️ 0 💤 0 ❌

Results for commit c759cf3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: SalesRule Relates to Mage_SalesRule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants