mirror of https://github.com/stashapp/stash.git
Change NULL filters to filter empty strings as well (#1137)
This commit is contained in:
parent
144cd6e4f2
commit
7e0db2aad4
|
@ -90,6 +90,10 @@ func (qb *queryBuilder) handleStringCriterionInput(c *models.StringCriterionInpu
|
||||||
}
|
}
|
||||||
qb.addWhere(column + " NOT regexp ?")
|
qb.addWhere(column + " NOT regexp ?")
|
||||||
qb.addArg(c.Value)
|
qb.addArg(c.Value)
|
||||||
|
case models.CriterionModifierIsNull:
|
||||||
|
qb.addWhere("(" + column + " IS NULL OR TRIM(" + column + ") = '')")
|
||||||
|
case models.CriterionModifierNotNull:
|
||||||
|
qb.addWhere("(" + column + " IS NOT NULL AND TRIM(" + column + ") != '')")
|
||||||
default:
|
default:
|
||||||
clause, count := getSimpleCriterionClause(modifier, "?")
|
clause, count := getSimpleCriterionClause(modifier, "?")
|
||||||
qb.addWhere(column + " " + clause)
|
qb.addWhere(column + " " + clause)
|
||||||
|
|
|
@ -6,4 +6,5 @@
|
||||||
* Added Rescan button to scene, image, gallery details overflow button.
|
* Added Rescan button to scene, image, gallery details overflow button.
|
||||||
|
|
||||||
### 🐛 Bug fixes
|
### 🐛 Bug fixes
|
||||||
|
* Change "Is NULL" filter to include empty string values.
|
||||||
* Prevent scene card previews playing in full-screen on iOS devices.
|
* Prevent scene card previews playing in full-screen on iOS devices.
|
||||||
|
|
Loading…
Reference in New Issue