From c231c624175d324710f6395de9ca77eaabf77376 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 22 Jan 2012 14:44:14 +0100 Subject: [PATCH] Don't save empty quality in profile --- couchpotato/core/plugins/profile/static/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/profile/static/profile.js b/couchpotato/core/plugins/profile/static/profile.js index 60ac4f0..7a6571e 100644 --- a/couchpotato/core/plugins/profile/static/profile.js +++ b/couchpotato/core/plugins/profile/static/profile.js @@ -106,7 +106,7 @@ var Profile = new Class({ } Array.each(self.type_container.getElements('.type'), function(type){ - if(!type.hasClass('deleted')) + if(!type.hasClass('deleted') && type.getElement('select').get('value') > 0) data.types.include({ 'quality_id': type.getElement('select').get('value'), 'finish': +type.getElement('input[type=checkbox]').checked