do NOT submit dialog, if it has no etemplate_exec_id, it only gives and error on server-side

This commit is contained in:
ralf 2022-11-02 13:50:50 +01:00
parent 179e12ac68
commit 0ec8636a7b

View File

@ -747,6 +747,14 @@ export class Et2Dialog extends Et2Widget(ScopedElementsMixin(SlotMixin(LionDialo
this._overlayContentNode.appendChild(button);
})
}
// do NOT submit dialog, if it has no etemplate_exec_id, it only gives and error on server-side
if (this._template_widget && !this._template_widget.widgetContainer.getInstanceManager().etemplate_exec_id)
{
this._template_widget?.DOMContainer.querySelectorAll('et2-button').forEach((button : Et2Button) =>
{
button.noSubmit = true;
});
}
return template_buttons;
}