mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Etemplate: Don't try to expand src if it is empty
This commit is contained in:
parent
5ebcc62626
commit
3e371ea51f
@ -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);
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user