From a7d333786f9ca80e08035bb04b522afa35b54411 Mon Sep 17 00:00:00 2001 From: InfiniteTF Date: Mon, 30 Nov 2020 00:50:04 +0100 Subject: [PATCH] Fix studio parent getting wiped in edit mode (#973) --- pkg/models/querybuilder_studio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/querybuilder_studio.go b/pkg/models/querybuilder_studio.go index 83bdfb67a..dcdeeec2f 100644 --- a/pkg/models/querybuilder_studio.go +++ b/pkg/models/querybuilder_studio.go @@ -141,7 +141,7 @@ func (qb *StudioQueryBuilder) All() ([]*Studio, error) { } func (qb *StudioQueryBuilder) AllSlim() ([]*Studio, error) { - return qb.queryStudios("SELECT studios.id, studios.name FROM studios "+qb.getStudioSort(nil), nil, nil) + return qb.queryStudios("SELECT studios.id, studios.name, studios.parent_id FROM studios "+qb.getStudioSort(nil), nil, nil) } func (qb *StudioQueryBuilder) Query(studioFilter *StudioFilterType, findFilter *FindFilterType) ([]*Studio, int) {