mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
Better check on global_data type before using it - null too
This commit is contained in:
parent
834832b87e
commit
13816aae70
@ -100,7 +100,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var global_data = this.getArrayMgr("modifications").getRoot().getEntry('~custom_fields~');
|
var global_data = this.getArrayMgr("modifications").getRoot().getEntry('~custom_fields~');
|
||||||
if(typeof global_data == 'object')
|
if(typeof global_data == 'object' && global_data != null)
|
||||||
{
|
{
|
||||||
global_data.fields = cfs;
|
global_data.fields = cfs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user