mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
Handle possibility that custom field filter is already an array
This commit is contained in:
@@ -79,13 +79,13 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
|||||||
// Already excluded?
|
// Already excluded?
|
||||||
if(already_filtered && !this.options.fields[field_name]) continue;
|
if(already_filtered && !this.options.fields[field_name]) continue;
|
||||||
|
|
||||||
if(!this.options.customfields[field_name].type2)
|
if(!this.options.customfields[field_name].type2 || this.options.customfields[field_name].type2.length == 0)
|
||||||
{
|
{
|
||||||
// No restrictions
|
// No restrictions
|
||||||
this.options.fields[field_name] = true;
|
this.options.fields[field_name] = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var types = this.options.customfields[field_name].type2.split(",");
|
var types = typeof this.options.customfields[field_name].type2 == 'string' ? this.options.customfields[field_name].type2.split(",") : this.options.customfields[field_name].type2;
|
||||||
this.options.fields[field_name] = false;
|
this.options.fields[field_name] = false;
|
||||||
for(var i = 0; i < types.length; i++)
|
for(var i = 0; i < types.length; i++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user