forked from extern/egroupware
do NOT submit dialog, if it has no etemplate_exec_id, it only gives and error on server-side
This commit is contained in:
parent
179e12ac68
commit
0ec8636a7b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user