Fix error generating reports

9b247ebba7 follow-up
This commit is contained in:
Dan Stillman 2017-01-24 15:42:28 -05:00
parent 50b7dd39a0
commit 3415aae908

View file

@ -935,7 +935,8 @@ Zotero.Search.prototype._buildQuery = Zotero.Promise.coroutine(function* () {
// For conditions with an inline filter using 'is'/'isNot', combine with last condition
// if the same
if (lastCondition
&& (!lastCondition.alias || name == lastCondition.alias)
&& ((!lastCondition.alias && !condition.alias && name == lastCondition.name)
|| (lastCondition.alias && condition.alias && lastCondition.alias == condition.alias))
&& condition.operator.startsWith('is')
&& condition.operator == lastCondition.operator
&& conditionData.inlineFilter) {