if this.et2 is null, skip accessing/setting vacationnotice

This commit is contained in:
Klaus Leithoff 2014-04-07 11:51:25 +00:00
parent 83716092fb
commit 0113cd678c

View File

@ -825,6 +825,7 @@ app.classes.mail = AppJS.extend(
//var vacationrange = this.et2.getWidgetById(this.nm_index+'[vacationrange]');
//console.log(_data,vacationnotice,vacationrange);
//try to set it via set_value and set label
if (!this.et2) return;
if (_data == null)
{
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value('');