fix for r49769 causing edit icon in toolbar opens empty contact, as app.addressbook.et2 was pointing to infolog template

This commit is contained in:
Ralf Becker 2014-12-09 13:46:27 +00:00
parent 7a4fb44240
commit 6a7c4c47ec

View File

@ -48,6 +48,11 @@ app.classes.addressbook = AppJS.extend(
*/
et2_ready: function(et2, name)
{
// r49769 let's CRM view run under currentapp == "addressbook", which causes
// app.addressbook.et2_ready called before app.infolog.et2_ready and therefore
// app.addressbook.et2 would point to infolog template, if we not stop here
if (name.match(/^infolog\./)) return;
// call parent
this._super.apply(this, arguments);