From e2d278e497dbbc390eb154257e184cee40c7e02f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 4 Nov 2022 11:43:52 +0100 Subject: [PATCH] Make sure the et2 object is there before using it --- mail/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index e18f3927ca..22b616d46a 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -4968,7 +4968,7 @@ app.classes.mail = AppJS.extend( */ 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'); var extended_settings = _widget.get_value() != 'attach' && this.egw.app('stylite');