From de2f05ee2745d4f6a6f0a5a67c3853fb7c7598c3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 31 Mar 2014 18:20:54 +0000 Subject: [PATCH] If link is for just 1 id (normal case), then don't use an array for ID --- etemplate/js/et2_extension_nextmatch.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index 8b636322fd..f6741b6a03 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -2746,6 +2746,11 @@ var et2_nextmatch_entryheader = et2_link_entry.extend(et2_INextmatchHeader, { if(!value.app || !value.id) return null; + // If array with just one value, use a string instead for legacy server handling + if(typeof value.id == 'object' && value.id.shift && value.id.length == 1) + { + value.id = value.id.shift(); + } // If simple value, format it legacy string style, otherwise // we return full value if(typeof value.id == 'string')