Skip to content

Commit 8d6488f

Browse files
committed
Merge branch 'release/8.2.4'
2 parents 79052fd + 558208f commit 8d6488f

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

Classes/Controller/FormController.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,22 @@ protected function forwardIfFormParamsDoNotMatchForOptinConfirm(Mail $mail = nul
455455
}
456456
}
457457

458+
/**
459+
* Always forward to formAction if a validation fails. Otherwise it could happen that when
460+
* a validator for createAction fails, confirmationAction is called (if function is turned on) and same validators
461+
* are firing again
462+
*
463+
* @return void
464+
* @throws StopActionException
465+
*/
466+
protected function forwardToReferringRequest()
467+
{
468+
$originalRequest = clone $this->request;
469+
$this->request->setOriginalRequest($originalRequest);
470+
$this->request->setOriginalRequestMappingResults($this->arguments->validate());
471+
$this->forward('form');
472+
}
473+
458474
/**
459475
* Decide if the mail object should be persisted or not
460476
* persist if

Documentation/Changelog/Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Version | Release Date | Description |
66
|------------ |--------------|-----------------------------------------------------------------------------------------------------------------------|
7+
| 8.2.4 | 2020-12-02 | Bugfix: Fix possible exception when extending powermail with own validators and using a confirmation view |
78
| 8.2.3 | 2020-11-08 | Bugfix: Set tx_powermail_domain_model_mail.fe_user value for logged in users |
89
| | | Bugfix: Fix link from PluginPreview to powermail module |
910
| | | Bugfix: Prevent possible exception if not existing form is selected in a plugin (e.g. from old data garbage) |

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
and easy to use mailform extension with a lots of features
1010
(spam prevention, marketing information, optin, ajax submit, diagram analysis, etc...)',
1111
'category' => 'plugin',
12-
'version' => '8.2.3',
12+
'version' => '8.2.4',
1313
'state' => 'stable',
1414
'author' => 'Powermail Development Team',
1515
'author_email' => 'alexander.kellner@in2code.de',

0 commit comments

Comments
 (0)