Steps to reproduce
- Go to the editing page of an existing ZObject
- E.g. https://wikifunctions.beta.wmflabs.org/w/index.php?title=Z10024&action=edit
- Current label JSON is
"Z12K1": [
"Z11",
{
"Z1K1": "Z11",
"Z11K1": "Z1002",
"Z11K2": "Mushroom"
},
{
"Z1K1": "Z11",
"Z11K1": "Z1003",
"Z11K2": "Seta"
},
{
"Z1K1": "Z11",
"Z11K1": "Z1025",
"Z11K2": "Grzyb"
}
]- Delete any label that's not the last one
- Updated label JSON is correct:
"Z12K1": [
"Z11",
{
"Z1K1": "Z11",
"Z11K1": "Z1003",
"Z11K2": "Seta"
},
{
"Z1K1": "Z11",
"Z11K1": "Z1025",
"Z11K2": "Grzyb"
}
]- Add one more label in a non-existing language by typing a new language in the Language selector below
Observed behavior
- When the new language is selected, this overwrites the last label available in the set.
- Updated label JSON is wrong:
"Z12K1": [
"Z11",
{
"Z1K1": "Z11",
"Z11K1": "Z1003",
"Z11K2": "Seta"
},
{
"Z1K1": "Z11",
"Z11K1": "Z1314",
"Z11K2": ""
}
]Expected behavior
- A new label should be added to the existing labels.
- The correct label JSON should be:
"Z12K1": [
"Z11",
{
"Z1K1": "Z11",
"Z11K1": "Z1003",
"Z11K2": "Seta"
},
{
"Z1K1": "Z11",
"Z11K1": "Z1025",
"Z11K2": "Grzyb"
},
{
"Z1K1": "Z11",
"Z11K1": "Z1314", // with the new selected language, in this case Basque
"Z11K2": ""
}
]