You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the code in Classes/Controller/ConditionController.php in the buildConditionAction methode only works for the pi1 of powermail.
The edit plugin (pi2) doesn't work with powermail_cond:
public function buildConditionAction(): ResponseInterface
{
$requestBody = $this->request->getParsedBody();
if (empty($requestBody['tx_powermail_pi1']['mail']['form'])) {
throw new MissingPowermailParameterException();
}
$powermailArguments = $requestBody['tx_powermail_pi1'];
It would work if the code would be like this:
public function buildConditionAction(): ResponseInterface
{
$requestBody = $this->request->getParsedBody();
if (empty($requestBody['tx_powermail_pi1']['mail']['form']) AND empty($requestBody['tx_powermail_pi2']['mail']['form'])) {
throw new MissingPowermailParameterException();
}
$powermailArguments = $requestBody['tx_powermail_pi1'];
if (empty($powermailArguments)) {
$powermailArguments = $requestBody['tx_powermail_pi2'];
}
The code in Resources/Private/Build/JavaScript/PowermailConditions.js has the same problem:
Hello,
the code in Classes/Controller/ConditionController.php in the buildConditionAction methode only works for the pi1 of powermail.
The edit plugin (pi2) doesn't work with powermail_cond:
It would work if the code would be like this:
The code in Resources/Private/Build/JavaScript/PowermailConditions.js has the same problem:
This could be a fix:
Best regards,
Tobias Schaefer
The text was updated successfully, but these errors were encountered: