Jump to content

Stock management increase / decrease error (solution found?)


socialcowboy

Recommended Posts

Prestashop version: 1.6.1.2.

 

Hi all,

 

We were having some issues with the advanced stock management. If we would try to increase or decrease our stock under "Stock Management" we get this:

 

2 errors 

  1. The field link_rewrite is required at least in Nederlands (Dutch).
  2. The field name is required at least in Nederlands (Dutch).

 

To answer a few questions that may rise:

Yes, we filled in every field.
Yes, this has worked for over a year
No, we only have the 1 language: Dutch. So everything is filled in on 'all' languages.

 

 

I found someone that had a fix for it, but I wonder what the consequences will be.

This is wat he found out:

 

About stock I know where is the problem. in
/controllers/admin/AdminStockManagementController.php in line 546 scripts call parent:postProcess();
next
/classes/controler/admincontroller in line 3370 call validateRules() which throw an exception

When you comment "parent:postProcess()" system allow increase and decrease stock, but I don't know what are the consequences

 

 

 

Like he says.. No idea what the consequences are. Any of you might have an idea? If this is a fix, but happens to create more errors this will not be my preferred solution :).

 

Other solutions are welcome, but found none working so far on the forums/github.

 

Thanks!

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

  • 4 months later...

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...