forked from extern/egroupware
Enhance nextmatch entryheader to return full value if it's anything more than a simple, single selection so we can handle it server side.
This commit is contained in:
parent
a0caff3b6a
commit
fe21f0fd74
@ -2706,15 +2706,23 @@ var et2_nextmatch_entryheader = et2_link_entry.extend(et2_INextmatchHeader,
|
||||
},
|
||||
|
||||
/**
|
||||
* Override to always return a string appname:id (or just id), parent returns an object
|
||||
* Override to always return a string appname:id (or just id) for simple (one real selection)
|
||||
* cases, parent returns an object. If multiple are selected, or anything other than app and
|
||||
* id, the original parent value is returned.
|
||||
*/
|
||||
getValue: function() {
|
||||
var value = this._super.apply(this, arguments);
|
||||
if(typeof value == "object" && value != null)
|
||||
{
|
||||
if(!value.app || !value.id) return null;
|
||||
|
||||
// If simple value, format it legacy string style, otherwise
|
||||
// we return full value
|
||||
if(typeof value.id == 'string')
|
||||
{
|
||||
value = value.app +":"+value.id;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user