mirror of https://github.com/stashapp/stash.git
Fix parent/child tag sort order (#5320)
This commit is contained in:
parent
4dd8dd948e
commit
be6431ac13
|
@ -167,7 +167,9 @@ func (t *joinTable) invert() *joinTable {
|
|||
table: t.table.table,
|
||||
idColumn: t.fkColumn,
|
||||
},
|
||||
fkColumn: t.table.idColumn,
|
||||
fkColumn: t.table.idColumn,
|
||||
foreignTable: t.foreignTable,
|
||||
orderBy: t.orderBy,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -333,7 +333,9 @@ var (
|
|||
table: tagRelationsJoinTable,
|
||||
idColumn: tagRelationsJoinTable.Col(tagChildIDColumn),
|
||||
},
|
||||
fkColumn: tagRelationsJoinTable.Col(tagParentIDColumn),
|
||||
fkColumn: tagRelationsJoinTable.Col(tagParentIDColumn),
|
||||
foreignTable: tagTableMgr,
|
||||
orderBy: tagTableMgr.table.Col("name").Asc(),
|
||||
}
|
||||
|
||||
tagsChildTagsTableMgr = *tagsParentTagsTableMgr.invert()
|
||||
|
|
Loading…
Reference in New Issue