mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-04 18:21:35 +01:00
Et2Template: Avoid more errors if template has no template or ID
This commit is contained in:
parent
fd078f55f5
commit
9a7475cf5b
@ -527,7 +527,7 @@ export class Et2Template extends Et2Widget(LitElement)
|
|||||||
}
|
}
|
||||||
|
|
||||||
let url = "";
|
let url = "";
|
||||||
const parts = (this.template || this.id).split('?');
|
const parts = ((this.template || this.id) + "").split('?');
|
||||||
const cache_buster = parts.length > 1 ? parts.pop() : ((new Date).valueOf() / 86400 | 0).toString();
|
const cache_buster = parts.length > 1 ? parts.pop() : ((new Date).valueOf() / 86400 | 0).toString();
|
||||||
let template_name = this.templateName;
|
let template_name = this.templateName;
|
||||||
|
|
||||||
@ -557,7 +557,7 @@ export class Et2Template extends Et2Widget(LitElement)
|
|||||||
|
|
||||||
public get app()
|
public get app()
|
||||||
{
|
{
|
||||||
const parts = (this.template || this.id).split('?');
|
const parts = ((this.template || this.id) + "").split('?');
|
||||||
const cache_buster = parts.length > 1 ? parts.pop() : null;
|
const cache_buster = parts.length > 1 ? parts.pop() : null;
|
||||||
let template_name = parts.pop();
|
let template_name = parts.pop();
|
||||||
|
|
||||||
@ -567,7 +567,7 @@ export class Et2Template extends Et2Widget(LitElement)
|
|||||||
|
|
||||||
public get templateName()
|
public get templateName()
|
||||||
{
|
{
|
||||||
const parts = (this.template || this.id).split('?');
|
const parts = ((this.template || this.id) + "").split('?');
|
||||||
const cache_buster = parts.length > 1 ? parts.pop() : null;
|
const cache_buster = parts.length > 1 ? parts.pop() : null;
|
||||||
let template_name = parts.pop() || "";
|
let template_name = parts.pop() || "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user