mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Check for null disambiguation on validate (#5019)
This commit is contained in:
committed by
WithoutPants
parent
c5bafeb15c
commit
e116775d60
@@ -15,6 +15,9 @@ func nameFilter(n string) *models.PerformerFilterType {
|
||||
Value: n,
|
||||
Modifier: models.CriterionModifierEquals,
|
||||
},
|
||||
Disambiguation: &models.StringCriterionInput{
|
||||
Modifier: models.CriterionModifierIsNull,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,13 +44,6 @@ func TestValidateName(t *testing.T) {
|
||||
newName = "new name"
|
||||
newDisambig = "new disambiguation"
|
||||
)
|
||||
// existing1 := models.Performer{
|
||||
// Name: name1,
|
||||
// }
|
||||
// existing2 := models.Performer{
|
||||
// Name: name2,
|
||||
// Disambiguation: disambig,
|
||||
// }
|
||||
|
||||
pp := 1
|
||||
findFilter := &models.FindFilterType{
|
||||
|
||||
Reference in New Issue
Block a user