Fix file information action

This commit is contained in:
Nathan Gray 2015-03-25 21:19:59 +00:00
parent 5c135604d2
commit ad070b221c

View File

@ -1513,7 +1513,8 @@ var et2_link_list = et2_link_string.extend(
var link_data = self.context.data; var link_data = self.context.data;
if(link_data.app == 'file') if(link_data.app == 'file')
{ {
var url = self.egw().mime_open(link_data); // File info is always the same
var url = '/apps/'+link_data.app2+'/'+link_data.id2+'/'+decodeURIComponent(link_data.id);
if(typeof url == 'string' && url.indexOf('webdav.php')) if(typeof url == 'string' && url.indexOf('webdav.php'))
{ {
// URL is url to file in webdav, so get rid of that part // URL is url to file in webdav, so get rid of that part