From ca497be17d3bc26f839ce637a046d2bef02dadfe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Mar 2014 15:32:58 +0000 Subject: [PATCH] fixed CRM view in case page-generation-time is displayed --- addressbook/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index db6756175e..2d1e4561b4 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -94,17 +94,17 @@ app.classes.addressbook = AppJS.extend( /** * Set link filter for the already open & rendered infolog list - * + * * @param {string} contact_id New contact ID */ view_set_infolog: function(contact_id) { // Find the infolog list var infolog = etemplate2.getById( - $j(this.et2.getInstanceManager().DOMContainer).next('.et2_container').attr('id') + $j(this.et2.getInstanceManager().DOMContainer).nextAll('.et2_container').attr('id') ); - var nm = null; - if(infolog != null && (nm = infolog.widgetContainer.getWidgetById('nm'))) + var nm = infolog ? infolog.widgetContainer.getWidgetById('nm') : null; + if(nm) { // Update the link filter to new contact nm.applyFilters({col_filter: {linked: 'addressbook:'+contact_id}});