mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-07 19:52:19 +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(!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
|
// If simple value, format it legacy string style, otherwise
|
||||||
// we return full value
|
// we return full value
|
||||||
if(typeof value.id == 'string')
|
if(typeof value.id == 'string')
|
||||||
|
Loading…
Reference in New Issue
Block a user