resolve rowid (app::id to id) for construction of vfs url to address addressbook entry

This commit is contained in:
Klaus Leithoff 2014-03-21 12:38:47 +00:00
parent c0eece6234
commit 8212c7419b

View File

@ -503,7 +503,10 @@ app.classes.addressbook = AppJS.extend(
var link = egw().link("/index.php","menuaction="+app_registry['add']['menuaction']);
for (var i = 0; i < _elems.length; i++)
{
link += "&preset[file][]="+encodeURIComponent("vfs://default/apps/addressbook/"+_elems[i].id+"/.entry");
var idToUse = _elems[i].id;
var idToUseArray = idToUse.split('::');
idToUse = idToUseArray[1];
link += "&preset[file][]="+encodeURIComponent("vfs://default/apps/addressbook/"+idToUse+"/.entry");
}
if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' )
{