forked from mirrors/homebox
fix: tree fixes (#252)
* use case insensitive sort * support new location selector in create item * fix incorrect date-time parsing logic
This commit is contained in:
parent
cbac17c059
commit
7b28973c60
3 changed files with 3 additions and 5 deletions
|
@ -280,7 +280,7 @@ func (lr *LocationRepository) Tree(ctx context.Context, GID uuid.UUID, tq TreeQu
|
|||
FROM location_tree
|
||||
ORDER BY level,
|
||||
node_type DESC, -- sort locations before items
|
||||
NAME;`
|
||||
lower(NAME)`
|
||||
|
||||
if tq.WithItems {
|
||||
itemQuery := `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue