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

Revert "Set brand purchase to added purchase item" #36

Conversation

EZarkov
Copy link
Contributor

@EZarkov EZarkov commented Jun 29, 2017

Reverts #35
Because the change introduces an unexpected behavior when product already exist in purchase, it adds additional purchase item which is a bug.

$brand_purchase->add_or_update_item($new_item);
$new_item->brand_purchase = $brand_purchase;
$this
->find_or_build_brand_purchase($brand)

Choose a reason for hiding this comment

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

Some wrong indentation here and the line below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@phgeorgiev I have reverted the changes. Would you make an issue to fix indentation?

Copy link
Contributor

Choose a reason for hiding this comment

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

The Kohana modules should continue to follow Kohana coding style.

@hkdobrev
Copy link
Contributor

What happened with this one?

@EZarkov EZarkov closed this Nov 26, 2018
@hkdobrev hkdobrev deleted the revert-35-brand-purchase-purchase-item-connection-on-add branch November 26, 2018 10:41
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.

None yet

4 participants