mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Fix linking an image/svg+xml image to an unsaved entry would give an error
An error happened! (EGroupware\Api\Exception\AssertionFailed): File 'true' is not an absolute path! was generated because we tried to use webdav.phptrue as the thumbnail
This commit is contained in:
parent
6b283c50ad
commit
ab389f314e
@ -156,7 +156,7 @@ egw.extend('images', egw.MODULE_GLOBAL, function()
|
||||
image = this.link('/api/thumbnail.php', params);
|
||||
}
|
||||
// for svg return image itself
|
||||
else if (type[0] == 'image' && type[1] == 'svg+xml')
|
||||
else if (type[0] == 'image' && type[1] == 'svg+xml' && typeof _path == "string")
|
||||
{
|
||||
image = this.webserverUrl+'/webdav.php'+_path;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user