From a62204dc06fc877db06a857adb059c4fed0bceea Mon Sep 17 00:00:00 2001 From: j Date: Wed, 12 Jun 2019 09:22:01 +0100 Subject: [PATCH] fix infoview --- static/js/infoView.indiancinema.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index 7544c28b..c9ec9d29 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -751,10 +751,11 @@ pandora.ui.infoView = function(data, isMixed) { function formatValue(key, value) { var ret; + var itemKey = Ox.getObjectById(pandora.site.itemKeys, key) if (key == 'year') { ret = formatLink(value, 'year'); } else if ( - specialListKeys.indexOf(key) > -1 && Ox.getObjectById(pandora.site.itemKeys, key).type[0] == 'date' + specialListKeys.indexOf(key) > -1 && itemKey && itemKey.type[0] == 'date' ) { ret = value.split('; ').map(function(date) { date = cleanupDate(date)