mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:18 +01:00
Et2Dialog: Make sure value has a content before loading template, otherwise we get an error from etemplate2
This commit is contained in:
parent
a5d6fea958
commit
cdbdf53d46
@ -494,6 +494,12 @@ export class Et2Dialog extends Et2Widget(ScopedElementsMixin(SlotMixin(LionDialo
|
|||||||
{
|
{
|
||||||
this._template_widget.clear();
|
this._template_widget.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Etemplate wants a content
|
||||||
|
if(typeof this.__value.content === "undefined")
|
||||||
|
{
|
||||||
|
this.__value.content = {};
|
||||||
|
}
|
||||||
this._template_widget = new etemplate2(this._overlayContentNode._contentNode);
|
this._template_widget = new etemplate2(this._overlayContentNode._contentNode);
|
||||||
if(this.__template.indexOf('.xet') > 0)
|
if(this.__template.indexOf('.xet') > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user