mirror of https://github.com/Radarr/Radarr
parent
2bea61bae5
commit
cb2bed93cb
|
@ -82,7 +82,7 @@ class BlocklistRow extends Component {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (name === 'movies.sortTitle') {
|
||||
if (name === 'movieMetadata.sortTitle') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<MovieTitleLink
|
||||
|
|
|
@ -99,7 +99,7 @@ class HistoryRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'movies.sortTitle') {
|
||||
if (name === 'movieMetadata.sortTitle') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<MovieTitleLink
|
||||
|
|
|
@ -32,7 +32,7 @@ export const defaultState = {
|
|||
|
||||
columns: [
|
||||
{
|
||||
name: 'movies.sortTitle',
|
||||
name: 'movieMetadata.sortTitle',
|
||||
label: () => translate('MovieTitle'),
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
|
|
@ -37,7 +37,7 @@ export const defaultState = {
|
|||
isModifiable: false
|
||||
},
|
||||
{
|
||||
name: 'movies.sortTitle',
|
||||
name: 'movieMetadata.sortTitle',
|
||||
label: () => translate('Movie'),
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
|
|
@ -48,7 +48,10 @@ namespace NzbDrone.Core.Blocklisting
|
|||
Delete(x => movieIds.Contains(x.MovieId));
|
||||
}
|
||||
|
||||
protected override SqlBuilder PagedBuilder() => new SqlBuilder(_database.DatabaseType).Join<Blocklist, Movie>((b, m) => b.MovieId == m.Id);
|
||||
protected override SqlBuilder PagedBuilder() => new SqlBuilder(_database.DatabaseType)
|
||||
.Join<Blocklist, Movie>((b, m) => b.MovieId == m.Id)
|
||||
.LeftJoin<Movie, MovieMetadata>((m, mm) => m.MovieMetadataId == mm.Id);
|
||||
|
||||
protected override IEnumerable<Blocklist> PagedQuery(SqlBuilder sql) => _database.QueryJoined<Blocklist, Movie>(sql, (bl, movie) =>
|
||||
{
|
||||
bl.Movie = movie;
|
||||
|
|
Loading…
Reference in New Issue