From 06608e852c28ae36ea2ad0552f2533ad8286a9be Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 17 Mar 2015 18:23:13 +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); }