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

This commit is contained in:
Nathan Gray 2015-03-16 21:15:38 +00:00
parent 7ccca9f4c6
commit 9e1625c983

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