Make sure the et2 object is there before using it

This commit is contained in:
Hadi Nategh 2022-11-04 11:43:52 +01:00
parent b96061b27a
commit e2d278e497

View File

@ -4968,7 +4968,7 @@ app.classes.mail = AppJS.extend(
*/ */
check_sharing_filemode: function(_node, _widget) check_sharing_filemode: function(_node, _widget)
{ {
if (this.et2.getArrayMgr('content').getEntry('no_griddata')) return; if (!this.et2 || this.et2.getArrayMgr('content').getEntry('no_griddata')) return;
if (!_widget) _widget = this.et2.getWidgetById('filemode'); if (!_widget) _widget = this.et2.getWidgetById('filemode');
var extended_settings = _widget.get_value() != 'attach' && this.egw.app('stylite'); var extended_settings = _widget.get_value() != 'attach' && this.egw.app('stylite');