forked from extern/egroupware
Etemplate: Don't try to expand src if it is empty
This commit is contained in:
parent
c258019574
commit
b78971a5c5
@ -76,8 +76,8 @@ var et2_image = /** @class */ (function (_super) {
|
|||||||
// Check to expand name
|
// Check to expand name
|
||||||
if (typeof _attrs["src"] != "undefined") {
|
if (typeof _attrs["src"] != "undefined") {
|
||||||
var manager = this.getArrayMgr("content");
|
var manager = this.getArrayMgr("content");
|
||||||
if (manager) {
|
if (manager && _attrs["src"]) {
|
||||||
var src = manager.getEntry(_attrs["src"]);
|
var src = manager.getEntry(_attrs["src"], false, true);
|
||||||
if (typeof src != "undefined" && src !== null) {
|
if (typeof src != "undefined" && src !== null) {
|
||||||
if (typeof src == "object") {
|
if (typeof src == "object") {
|
||||||
src = egw().link('/index.php', src);
|
src = egw().link('/index.php', src);
|
||||||
|
@ -124,8 +124,8 @@ class et2_image extends et2_baseWidget implements et2_IDetachedDOM
|
|||||||
if (typeof _attrs["src"] != "undefined")
|
if (typeof _attrs["src"] != "undefined")
|
||||||
{
|
{
|
||||||
let manager = this.getArrayMgr("content");
|
let manager = this.getArrayMgr("content");
|
||||||
if(manager) {
|
if(manager && _attrs["src"]) {
|
||||||
let src = manager.getEntry(_attrs["src"]);
|
let src = manager.getEntry(_attrs["src"], false, true);
|
||||||
if (typeof src != "undefined" && src !== null)
|
if (typeof src != "undefined" && src !== null)
|
||||||
{
|
{
|
||||||
if(typeof src == "object")
|
if(typeof src == "object")
|
||||||
|
Loading…
Reference in New Issue
Block a user