parent
50b7dd39a0
commit
3415aae908
1 changed files with 2 additions and 1 deletions
|
@ -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
|
// For conditions with an inline filter using 'is'/'isNot', combine with last condition
|
||||||
// if the same
|
// if the same
|
||||||
if (lastCondition
|
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.startsWith('is')
|
||||||
&& condition.operator == lastCondition.operator
|
&& condition.operator == lastCondition.operator
|
||||||
&& conditionData.inlineFilter) {
|
&& conditionData.inlineFilter) {
|
||||||
|
|
Loading…
Reference in a new issue