mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +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
56ac5d5be8
commit
8fb0048c17
@ -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