Lydia_Pintscher renamed this task from "[Bug] new representation with same language code overwrites existing representation" to "[Bug] new representation or Lemma with same language code overwrites existing representation".
Lydia_Pintscher updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
Problematic behavior: When I add a new representation to a Form or a new Lemma to a Lexeme that already has one and I use the same language code then the edit is accepted and the existing representation/Lemma is replaced.
...
WHEN I add an additional representation with the language code "de"
THEN an error is shown saying "It is not possible to enter two representations with the same language code."

GIVEN I am on the Lexeme part of a Lexeme page
AND There as a Lemma with the language code "de"

AND ClickWHEN I add an additional Lemma with the save buttonlanguage code "de"
THEN an error is shown saying "It is not possible to enter two representations with the same language code."


Note: API should deal with possible "incorrect" JSON input in a similar way it handles similar input e.g. when editing item labels, i.e. take the last representation.

TASK DETAIL
https://phabricator.wikimedia.org/T193636

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pablo-WMDE, Lydia_Pintscher
Cc: gerritbot, Lea_Lacroix_WMDE, Aklapper, Lydia_Pintscher, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to