mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
Avoid fatal error breaking nm if fields is null
This commit is contained in:
parent
dc6da791f4
commit
9feb7e22bf
@ -1235,7 +1235,7 @@ var et2_nextmatch_customfields = et2_nextmatch_header.extend({
|
|||||||
if(!data.fields) data.fields = {};
|
if(!data.fields) data.fields = {};
|
||||||
for(var field in this.options.customfields)
|
for(var field in this.options.customfields)
|
||||||
{
|
{
|
||||||
data.fields[field] = (typeof this.options.fields[field] == 'undefined' ? false : this.options.fields[field]);
|
data.fields[field] = (this.options.fields == null || typeof this.options.fields[field] == 'undefined' ? false : this.options.fields[field]);
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user