Page MenuHomePhabricator

empty aliases array on the API on some format like JSON or PHP
Closed, ResolvedPublic

Description

The discussion is here :
http://www.wikidata.org/wiki/Wikidata:Contact_the_development_team#Can.27t_delete_languages_from_an_item

Problem :
When I add an alias, a variable is created but when I throw the delete flag for an alias and if there is no more aliases for this language the variable is still alive but empty. It's why we can see on labelLister, which use json format, blank rows in some language


Version: unspecified
Severity: normal
URL: http://www.wikidata.org/w/api.php?format=jsonfm&action=wbgetentities&ids=Q853475

Details

Reference
bz44717

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:37 AM
bzimport set Reference to bz44717.
bzimport added a subscriber: Unknown Object (MLST).

I guess the data model should check to see if there are no aliases for a language before saving an empty array