Jump to content

[Bug] Availability resets after "back to catalog" action


Tom1884

Recommended Posts

I'm experimenting this strange behavior (PS 1.7.6.1): I only check an active product with combination, then I click "Back to catalog" and, when there, its availabilities are reset to zero!

So, after clicking "Back to catalog", PS makes a saving and this update all to 0. It happens apparently randomly (or maybe with items migrated from PS 1.6?), and it doesn't happen again with the same product (after I correct availability the first time after bug, then product became "immune").

Can someone help? This make my shop pretty unusable.

Ps: that "bugged" saving also add the category "Home" to product

Edit [possible solution]: I've compared the db situation pre-bug, post-bug and after correction of a product. I noticed that product with value "1" or more in the field "depends_on_stock" of table "presta_stock_available" will present the bug. Modifying it to "0" (the value of the field also after the correct re-insert of nulled availability values) before any saving will prevent from resetting availability values. What consequences could this change have?

 

Edited by Tom1884
Specifications (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...