Skip to content
This repository has been 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

Open
rs2487 opened this issue May 18, 2018 · 1 comment
Open
Labels
Milestone

Comments

@rs2487
Copy link

rs2487 commented May 18, 2018

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?

@danrot danrot added the Bug label Jun 11, 2018
@danrot danrot added this to the Release 1.6 milestone Jun 11, 2018
@danrot
Copy link
Contributor

danrot commented Jun 11, 2018

2002 seems to be the error for the other keywords (the one shown in the table). But nevertheless this is a bug, that needs to be addressed...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants