Jump to content

Can't edit product when two categories have the same name


OlivFC

Recommended Posts

Hello,

 

I'm working on a Prestashop 1.7.0.3 and I encountered a problem.

The shop is selling car parts, so I have categories for all the makes and then subcategories for all the models. As it happens, some models have the same name but they are built by different carmakers (for exemple, BMW 323 and MAZDA 323).

So I have two categories that have the same name (323) but belonging to two different parent categories (BMW and MAZDA).

 

The problem is, when I try to edit the products that belong to those subcategories in the back office, I get an error saying "Unable to update settings". In the Chrome console, I can see that the POST request gets a 400 error (Bad Request) and the preview response is "step1_categories_tree: [This value is not valid]".

 

Editing products that belong in subcategories with unique names works correctly.

 

Thanks in advance for your help.

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