1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fix for editing quality of movie files.

Fixes #1165
This commit is contained in:
Leonardo Galli 2017-03-14 16:26:39 +01:00
parent 35e046bb87
commit 421a191650

View File

@ -34,7 +34,7 @@ var view = Marionette.ItemView.extend({
_onBeforeSave : function() {
var qualityId = this.ui.quality.val();
var quality = this.qualities.find(function(m){return m.get("quality").id === qualityId;}).get("quality");
var quality = this.qualities.find(function(m){return m.get("quality").id === parseInt(qualityId);}).get("quality");
var mQuality = this.model.get("quality");
mQuality.quality = quality;
this.model.set({ quality : mQuality });