From a3b3b9c2189336a77c2f523f6b1479c2ab1a4c47 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 30 Sep 2012 17:33:51 +0200 Subject: [PATCH] Don't use cached in_wanted when re-adding movie --- couchpotato/core/plugins/movie/static/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/movie/static/search.js b/couchpotato/core/plugins/movie/static/search.js index 63cab349..2115ef4d 100644 --- a/couchpotato/core/plugins/movie/static/search.js +++ b/couchpotato/core/plugins/movie/static/search.js @@ -339,7 +339,7 @@ Block.Search.Item = new Class({ 'height': null, 'width': null }) : null, - self.info.in_wanted ? new Element('span.in_wanted', { + self.info.in_wanted && self.info.in_wanted.profile ? new Element('span.in_wanted', { 'text': 'Already in wanted list: ' + self.info.in_wanted.profile.label }) : (in_library ? new Element('span.in_library', { 'text': 'Already in library: ' + in_library.join(', ')