From 9e1625c983b98d8e5c7f34549aa674744a7c86d0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 16 Mar 2015 21:15:38 +0000 Subject: [PATCH] Avoid errors in refresh if most recently opened etemplate gets closed before refresh. --- infolog/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index 0f12ebd1e0..8cf7a2e217 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -101,7 +101,7 @@ app.classes.infolog = AppJS.extend( } } // Refresh handler for Addressbook CRM view - if (_app == 'infolog' && this.et2._inst.app == 'addressbook' && this.et2._inst.name == 'infolog.index') + if (_app == 'infolog' && this.et2.getInstanceManager() && this.et2.getInstanceManager().app == 'addressbook' && this.et2.getInstanceManager().name == 'infolog.index') { this.et2._inst.refresh(_msg, _app, _id, _type); }