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 fatal error on classes/stock/StockAvailable.php #5241

Merged
merged 1 commit into from
Jun 7, 2016

Conversation

xBorderie
Copy link
Contributor

@xBorderie xBorderie commented Mar 23, 2016

Questions Answers
Branch? develop
Description? Inspired by this thread: https://www.prestashop.com/forums/topic/483630-bug-161-1-1612-classesstockstockavailablephp/

When the classes/stock/StockAvailable.php is left as is some products would cause the payment window to hang and the page will never redirect. I turned on developer mode to get this error.

Fatal error: Uncaught exception 'PrestaShopException' with message 'Property StockAvailable-id_product_attribute is empty'

See #5242 for the 1.6.1.x PR of this commit.
Also, see #4545 for a first PR attempting to fix this.
Type? bug fix
Category? CO
BC breaks? no
Deprecations? no
Fixed ticket? http://forge.prestashop.com/browse/PSCSX-6890

@maximebiloe maximebiloe added Code reviewed Waiting for QA Status: action required, waiting for test feedback labels Apr 14, 2016
@xBorderie xBorderie added the Bug Type: Bug label Apr 15, 2016
@xBorderie xBorderie added this to the 1.7.0.0 milestone Apr 18, 2016
@xBorderie
Copy link
Contributor Author

The same bug was fixed in the same manner for 1.6.1.x in PR #5242. Could you therefore merge this one for develop, @maximebiloe or @Shudrum ? Thanks!

@maximebiloe maximebiloe changed the title [-] CORE : Fix fatal error on classes/stock/StockAvailable.php (develop) Fix fatal error on classes/stock/StockAvailable.php Jun 7, 2016
@maximebiloe maximebiloe removed the Waiting for QA Status: action required, waiting for test feedback label Jun 7, 2016
@maximebiloe maximebiloe merged commit 581388f into develop Jun 7, 2016
@xBorderie xBorderie deleted the xBorderie-fixStockDevelop branch June 7, 2016 10:03
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.

2 participants