Avoid errors in refresh if most recently opened etemplate gets closed before refresh.

This commit is contained in:
Nathan Gray 2015-03-17 18:23:13 +00:00
parent 0024ca1348
commit 06608e852c

View File

@ -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);
}