aude added a comment.

the serialization from wbgetentities is returned like:

{"entities":[{"pageid":122,"ns":122,"title":"Property:https://phabricator.wikimedia.org/P31","lastrevid":122,"modified":"2015-08-03T22:06:39Z","type":"property","datatype":"wikibase-item","id":"https://phabricator.wikimedia.org/P31","labels":[{"language":"en","value":"stated
 in"}],"descriptions":[{"language":"en","value":"to be used in the source 
field, to indicate where a claim is 
made"}],"aliases":{"en":[{"language":"en","value":"source of 
claim"}]},"claims":{}}],"success":1}

before, it was like:

{"entities":{"https://phabricator.wikimedia.org/P31":{"pageid":122,"ns":122,"title":"Property:https://phabricator.wikimedia.org/P31","lastrevid":122,"modified":"2015-08-03T22:06:39Z","type":"property","datatype":"wikibase-item","id":"https://phabricator.wikimedia.org/P31","labels":{"en":{"language":"en","value":"stated
 in"}},"descriptions":{"en":{"language":"en","value":"to be used in the source 
field, to indicate where a claim is 
made"}},"aliases":{"en":[{"language":"en","value":"source of 
claim"}]}}},"success":1}

with "en" as a key for labels and other terms.  The javascript code is 
expecting these.


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

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

To: aude
Cc: aude, Aklapper, Wikidata-bugs, Malyacko



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to