Skip to content
This repository was archived by the owner on Dec 18, 2020. It is now read-only.
This repository was archived by the owner on Dec 18, 2020. It is now read-only.

No feedback on saving category with duplicate key (No error is displayed) #847

@rs2487

Description

@rs2487
Q A
Bug? yes
New Feature? no
Sulu Version 1.6.18
Browser Version FF 59

Actual Behavior

Adding a category with an existing key response a error but this error is not displayed to the user

Expected Behavior

Error is displayed to the user.

Steps to Reproduce

  1. Add category with a key
  2. Add a second category with same key

Possible Solutions

Check in Frontend is:

if (jqXHR.status === 409 && jqXHR.responseJSON.code === 2002) {

but code in response is 0.

What correct? The if or the code in response json?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions