From ab389f314e717ef0d9cab389deaeb34cafeacd4f Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 28 Apr 2021 12:00:02 -0600 Subject: [PATCH] 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 --- api/js/jsapi/egw_images.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/jsapi/egw_images.js b/api/js/jsapi/egw_images.js index c6995ab696..ddb27d726e 100644 --- a/api/js/jsapi/egw_images.js +++ b/api/js/jsapi/egw_images.js @@ -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; }