Page MenuHomePhabricator

Duplicate entry for key error when saving partners in /admin while set to a non-English language that doesn't have relevant tags translated
Closed, ResolvedPublic

Description

When saving a partner in the admin interface while set to a non-English language, an error 1062 (Duplicate entry {} for key {}) is raised if the tags for that partner haven't been translated.

Not a priority right now because none of the TWL team are primarily using the Library Card in a non-English language.

Event Timeline

Samwalton9-WMF renamed this task from Internal Server Error when changing partner descriptions while set to a non-English language to Duplicate entry for key error when saving partners in /admin while set to a non-English language.Mar 27 2018, 11:18 AM
Samwalton9-WMF updated the task description. (Show Details)

Ah, the issue goes away if tags have been translated into the interface language in the Tags section of admin. The error is raised if the tags field has defaulted to English because a translation wasnt available.

Samwalton9-WMF renamed this task from Duplicate entry for key error when saving partners in /admin while set to a non-English language to Duplicate entry for key error when saving partners in /admin while set to a non-English language that doesn't have relevant tags translated.Mar 27 2018, 11:30 AM
Samwalton9-WMF updated the task description. (Show Details)
Samwalton9-WMF assigned this task to jsn.sherman.

Looks like this got fixed during T179819.