fixed not saved comment on an existing file/attachment

This commit is contained in:
Ralf Becker 2015-01-20 17:37:04 +00:00
parent f5871177c8
commit da31446897

View File

@ -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