Fix "str is null" sync error with empty search condition values

This commit is contained in:
Dan Stillman 2008-07-09 15:57:33 +00:00
parent 49f655726c
commit 417dc32548

View file

@ -2143,7 +2143,8 @@ Zotero.Sync.Server.Data = new function() {
conditionXML.@mode = condition.mode;
}
conditionXML.@operator = condition.operator;
conditionXML.@value = _xmlize(condition.value);
conditionXML.@value =
_xmlize(condition.value ? condition.value : '');
if (condition.required) {
conditionXML.@required = 1;
}