mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
If link is for just 1 id (normal case), then don't use an array for ID
This commit is contained in:
parent
dcf0cf4e95
commit
de2f05ee27
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user