mirror of https://github.com/Radarr/Radarr
Fix sorting history items by movie titles
This commit is contained in:
parent
e259235df6
commit
1354c2c337
|
@ -76,7 +76,8 @@ namespace NzbDrone.Core.History
|
||||||
|
|
||||||
protected override SqlBuilder PagedBuilder() => new SqlBuilder(_database.DatabaseType)
|
protected override SqlBuilder PagedBuilder() => new SqlBuilder(_database.DatabaseType)
|
||||||
.Join<MovieHistory, Movie>((h, m) => h.MovieId == m.Id)
|
.Join<MovieHistory, Movie>((h, m) => h.MovieId == m.Id)
|
||||||
.Join<Movie, Profile>((m, p) => m.ProfileId == p.Id);
|
.Join<Movie, Profile>((m, p) => m.ProfileId == p.Id)
|
||||||
|
.LeftJoin<Movie, MovieMetadata>((m, mm) => m.MovieMetadataId == mm.Id);
|
||||||
|
|
||||||
protected override IEnumerable<MovieHistory> PagedQuery(SqlBuilder sql) =>
|
protected override IEnumerable<MovieHistory> PagedQuery(SqlBuilder sql) =>
|
||||||
_database.QueryJoined<MovieHistory, Movie, Profile>(sql, (hist, movie, profile) =>
|
_database.QueryJoined<MovieHistory, Movie, Profile>(sql, (hist, movie, profile) =>
|
||||||
|
|
Loading…
Reference in New Issue