Fix #2563: Uploading from wikidata with "?" description (#2586)

This commit is contained in:
Vanshika Arora 2019-03-16 17:40:29 +05:30 committed by Adam Jones
parent 57e685cf6c
commit 900bd4ff2f

View file

@ -124,7 +124,7 @@ public class UploadModel {
if (place != null) {
uploadItem.title.setTitleText(place.getName());
uploadItem.descriptions.get(0).setDescriptionText(place.getLongDescription());
uploadItem.descriptions.get(0).setDescriptionText(place.getLongDescription().equals("?")?"":place.getLongDescription());
//TODO figure out if default descriptions in other languages exist
uploadItem.descriptions.get(0).setLanguageCode("en");
}