Fix parent/child tag sort order (#5320)

This commit is contained in:
WithoutPants 2024-09-30 17:13:45 +10:00 committed by GitHub
parent 4dd8dd948e
commit be6431ac13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -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,
}
}

View File

@ -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()