mirror of https://github.com/Sonarr/Sonarr
Fixed episode number in history
This commit is contained in:
parent
261751727b
commit
de012aec21
|
@ -18,12 +18,25 @@ define(
|
|||
var episodeField = this.column.get('episodes') || 'episodeNumber';
|
||||
|
||||
if (this.model) {
|
||||
var result = 'Unknown';
|
||||
|
||||
var airDate = this.model.get(airDateField);
|
||||
var seasonNumber = this.model.get(seasonField);
|
||||
var episodes = this.model.get(episodeField);
|
||||
|
||||
var result = 'Unknown';
|
||||
if (this.cellValue) {
|
||||
if (!seasonNumber) {
|
||||
seasonNumber = this.cellValue.get(seasonField);
|
||||
}
|
||||
|
||||
if (!episodes) {
|
||||
episodes = this.cellValue.get(episodeField);
|
||||
}
|
||||
|
||||
if (!airDate) {
|
||||
this.model.get(airDateField);
|
||||
}
|
||||
}
|
||||
|
||||
if (episodes) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue