diff --git a/api/js/etemplate/et2_widget_image.js b/api/js/etemplate/et2_widget_image.js index 102aa2a8e5..f356bc2634 100644 --- a/api/js/etemplate/et2_widget_image.js +++ b/api/js/etemplate/et2_widget_image.js @@ -76,8 +76,8 @@ var et2_image = /** @class */ (function (_super) { // Check to expand name if (typeof _attrs["src"] != "undefined") { var manager = this.getArrayMgr("content"); - if (manager) { - var src = manager.getEntry(_attrs["src"]); + if (manager && _attrs["src"]) { + var src = manager.getEntry(_attrs["src"], false, true); if (typeof src != "undefined" && src !== null) { if (typeof src == "object") { src = egw().link('/index.php', src); diff --git a/api/js/etemplate/et2_widget_image.ts b/api/js/etemplate/et2_widget_image.ts index 080bd8fea5..f6ea6d3b6a 100644 --- a/api/js/etemplate/et2_widget_image.ts +++ b/api/js/etemplate/et2_widget_image.ts @@ -124,8 +124,8 @@ class et2_image extends et2_baseWidget implements et2_IDetachedDOM if (typeof _attrs["src"] != "undefined") { let manager = this.getArrayMgr("content"); - if(manager) { - let src = manager.getEntry(_attrs["src"]); + if(manager && _attrs["src"]) { + let src = manager.getEntry(_attrs["src"], false, true); if (typeof src != "undefined" && src !== null) { if(typeof src == "object")