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

PIPRES-346: Voucher visibility fix #829

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

mandan2
Copy link
Contributor

@mandan2 mandan2 commented Oct 16, 2023

Condition was always false as comparison was done with strict types while values were never the same type

@mandan2 mandan2 self-assigned this Oct 16, 2023
@mandan2 mandan2 changed the base branch from master to release-6.0.5 October 16, 2023 13:43
foreach ($cartItem['features'] as $feature) {
if (!$this->isVoucherFeature($feature['id_feature'])) {
continue;
if ($this->isVoucherFeature((int) $feature['id_feature'])) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should leave the prior version IMO, just pass the id feature with cast

@mandan2 mandan2 merged commit 3fa88fd into release-6.0.5 Oct 16, 2023
5 checks passed
@mandan2 mandan2 deleted the PIPRES-346-voucher-visibility-fix branch October 16, 2023 14:09
JevgenijVisockij pushed a commit that referenced this pull request Jan 16, 2024
* PIPRES-346: Voucher visibility fix

* reverted back logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants