mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix movies sorting, scene studio editing (#1478)
* Fix movies:sort_by->scenes_count, scene:edit->remove studio
This commit is contained in:
@@ -210,12 +210,14 @@ func (qb *movieQueryBuilder) getMovieSort(findFilter *models.FindFilterType) str
|
||||
direction = findFilter.GetDirection()
|
||||
}
|
||||
|
||||
// #943 - override name sorting to use natural sort
|
||||
if sort == "name" {
|
||||
switch sort {
|
||||
case "name": // #943 - override name sorting to use natural sort
|
||||
return " ORDER BY " + getColumn("movies", sort) + " COLLATE NATURAL_CS " + direction
|
||||
case "scenes_count": // generic getSort won't work for this
|
||||
return getCountSort(movieTable, moviesScenesTable, movieIDColumn, direction)
|
||||
default:
|
||||
return getSort(sort, direction, "movies")
|
||||
}
|
||||
|
||||
return getSort(sort, direction, "movies")
|
||||
}
|
||||
|
||||
func (qb *movieQueryBuilder) queryMovie(query string, args []interface{}) (*models.Movie, error) {
|
||||
|
||||
Reference in New Issue
Block a user