Commit 91217581 authored by Carsten  Rose's avatar Carsten Rose

Fixes #10010. FE.type=sendmail will be fired together with fe.type=after* (not...

Fixes #10010. FE.type=sendmail will be fired together with fe.type=after* (not after them as before).
parent f79441f5
......@@ -547,8 +547,8 @@ class QuickFormQuery {
$save->processAllUploads($rc);
// Action: After
$feTypeList = FE_TYPE_AFTER_SAVE . ',' . ($recordId == 0 ? FE_TYPE_AFTER_INSERT : FE_TYPE_AFTER_UPDATE);
// Action: After*, Sendmail
$feTypeList = FE_TYPE_SENDMAIL . ',' . FE_TYPE_AFTER_SAVE . ',' . ($recordId == 0 ? FE_TYPE_AFTER_INSERT : FE_TYPE_AFTER_UPDATE);
$status = $formAction->elements($rc, $this->feSpecAction, $feTypeList);
if ($status != ACTION_ELEMENT_NO_CHANGE) {
// Reload fresh saved record and fill STORE_RECORD with it.
......@@ -558,9 +558,6 @@ class QuickFormQuery {
// Action: Paste
$this->pasteClipboard($this->formSpec[F_ID], $formAction);
// Action: Sendmail
$formAction->elements($rc, $this->feSpecAction, FE_TYPE_SENDMAIL);
if ($formMode == FORM_REST) {
$data = ['id' => $rc];
$flagApiStructureReGroup = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment