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

Prevent error when id_product_attribute is empty #4545

Closed
wants to merge 1 commit into from

Conversation

ramtin2025
Copy link
Contributor

Prevent error when id_product_attribute is empty

@xBorderie
Copy link
Contributor

Hey @ramtin2025 , thank you for this PR!

Could you give more details about what you are making?

Also, could you follow the guidelines for PR and commit titles?

Thank you!

@kpodemski
Copy link
Contributor

@xBorderie from what I see id_product_attribute is required for StockAvailable object but not really. IMO it should be defined as 0 in StockAvailable.php here https://github.com/PrestaShop/PrestaShop/blob/develop/classes/stock/StockAvailable.php#L39

what you think @ramtin2025 ?

@xBorderie
Copy link
Contributor

Fixed with #5241. Thank you!

@xBorderie xBorderie closed this Jun 7, 2016
@xBorderie xBorderie removed Estimate: S Waiting for rebase Status: action required, waiting for rebase labels Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants