From e7ff84cf407e4fa941d970e2dcbdc72eb7897870 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 1 Mar 2014 20:15:04 +0100 Subject: [PATCH] Saving changed quality of episode file --- src/UI/Cells/Edit/QualityCellEditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UI/Cells/Edit/QualityCellEditor.js b/src/UI/Cells/Edit/QualityCellEditor.js index 934a36fa3..9adedffff 100644 --- a/src/UI/Cells/Edit/QualityCellEditor.js +++ b/src/UI/Cells/Edit/QualityCellEditor.js @@ -50,11 +50,11 @@ define( var column = this.column; var selected = parseInt(this.$el.val(), 10); - var quality = _.find(this.schema.get('available'), { 'id': selected }); + var qualityProfileItem = _.find(this.schema.get('items'), function(model) { return model.quality.id == selected }); var newQuality = { proper : false, - quality: quality + quality: qualityProfileItem.quality }; model.set(column.get('name'), newQuality);