diff --git a/etemplate/js/et2_widget_link.js b/etemplate/js/et2_widget_link.js index f80015ab9e..6f3119f40b 100644 --- a/etemplate/js/et2_widget_link.js +++ b/etemplate/js/et2_widget_link.js @@ -1457,7 +1457,7 @@ var et2_link_list = et2_link_string.extend( function(button, comment) { if(button != et2_dialog.OK_BUTTON) return; var remark = jQuery('#link_'+(self.context.data.dom_id ? self.context.data.dom_id : link_id), self.list).children('.remark'); - if(isNaN(self.context.data.id) || isNaN(self.context.data.link_id == 'undefined')) + if(isNaN(self.context.data.link_id)) // new entry, not yet stored { remark.text(comment); // Look for a link-to with the same ID, refresh it