- Forced form's name when one is given to a contact (will make sure the good form has been passed)

This commit is contained in:
Dave Mc Nicoll committed 2020-04-09 14:39:25 -04:00
1 parent 23e8eb71f6
commit db17c890c5
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ class FormHandler {
{
if ( false !== $this->context->formSent = $this->sent ) {
if ( $this->context->formName ?? false ) {
$this->context->formSent = (bool) ( $this->request->getParsedBody()['picea-ui-form'][$this->context->formName] ?? false );
$this->sent = $this->context->formSent = (bool) ( $this->request->getParsedBody()['picea-ui-form'][$this->context->formName] ?? false );
}
}
}