mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
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