From 9c13096e674dcf13828a31edb3737f9a7238a9cf Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 16 Apr 2015 08:26:53 +0000 Subject: [PATCH] A temporary fix for widget link_list because of none match server-side and client-side data structure --- etemplate/js/et2_widget_link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index 30bef8c843..b2107f6ebf 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -1672,7 +1672,7 @@ var et2_link_list = et2_link_string.extend( link.dom_id = 'temp_'+egw.uid(); } // Icon should be in registry - if(typeof link.icon == 'undefined') + if(!link.icon) { link.icon = egw.link_get_registry(link.app,'icon'); // No icon, try by mime type - different place for un-saved entries @@ -1684,7 +1684,7 @@ var et2_link_list = et2_link_string.extend( } } // Special handling for file - if not existing, we can't ask for title - if(link.app == 'file' && typeof link.title == 'undefined') + if(typeof link.id =='object' && !link.title) { link.title = link.id.name || ''; }