Commit 233ab3bf authored by Carsten  Rose's avatar Carsten Rose
Browse files

F4649 - move validate() before sqlBefore()/sqlAfter(). refs #4649

parent 3ccef0cf
Pipeline #1004 passed with stage
in 1 minute and 40 seconds
......@@ -174,14 +174,14 @@ class FormAction {
$this->store->setStore($arr, STORE_LDAP, true);
}
$this->validate($fe);
// If given: fire a sqlBefore query
$this->evaluate->parse($fe[FE_SQL_BEFORE]);
if ($fe[FE_TYPE] === FE_TYPE_SENDMAIL) {
$this->doSendMail($fe);
} else {
$this->validate($fe);
$rcTmp = $this->doSlave($fe, $recordId);
switch ($rcTmp) {
case ACTION_ELEMENT_MODIFIED:
......
Supports Markdown
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