remove some logging
Release / build (push) Canceled after 0s
CI / testsuite (pgsql, 8.4, ) (push) Canceled after 0s
CI / testsuite (sqlite, 8.2, ) (push) Canceled after 0s
CI / testsuite (mysql, 8.2, ) (push) Canceled after 24s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Canceled after 0s
CI / testsuite (sqlite, 8.4, ) (push) Canceled after 0s
CI / Coding Standard & Static Analysis (push) Canceled after 0s
CI / testsuite (mysql, 8.4, ) (push) Canceled after 11s
CI / testsuite (pgsql, 8.2, ) (push) Canceled after 19s
Release / build (push) Canceled after 0s
CI / testsuite (pgsql, 8.4, ) (push) Canceled after 0s
CI / testsuite (sqlite, 8.2, ) (push) Canceled after 0s
CI / testsuite (mysql, 8.2, ) (push) Canceled after 24s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Canceled after 0s
CI / testsuite (sqlite, 8.4, ) (push) Canceled after 0s
CI / Coding Standard & Static Analysis (push) Canceled after 0s
CI / testsuite (mysql, 8.4, ) (push) Canceled after 11s
CI / testsuite (pgsql, 8.2, ) (push) Canceled after 19s
This commit is contained in:
@@ -92,8 +92,7 @@ class ContactUsComponent extends Component {
|
|||||||
'contactUsFormSubmission' => $contactUsFormSubmission,
|
'contactUsFormSubmission' => $contactUsFormSubmission,
|
||||||
], $this->getController());
|
], $this->getController());
|
||||||
$result = $event->getResult();
|
$result = $event->getResult();
|
||||||
Log::debug(print_r('$result', true));
|
|
||||||
Log::debug(print_r($result, true));
|
|
||||||
if ($result instanceof EntityInterface) {
|
if ($result instanceof EntityInterface) {
|
||||||
$postData = $result->toArray();
|
$postData = $result->toArray();
|
||||||
$contactUsFormSubmission = $this->ContactUsFormSubmissions->patchEntity($contactUsFormSubmission, $postData);
|
$contactUsFormSubmission = $this->ContactUsFormSubmissions->patchEntity($contactUsFormSubmission, $postData);
|
||||||
@@ -152,8 +151,6 @@ class ContactUsComponent extends Component {
|
|||||||
$this->Flash->success($message);
|
$this->Flash->success($message);
|
||||||
|
|
||||||
$redirectUrl = $this->getConfig('redirectUrl');
|
$redirectUrl = $this->getConfig('redirectUrl');
|
||||||
Log::debug(print_r('$contactUsFormSubmissionSaved after save', true));
|
|
||||||
Log::debug(print_r($contactUsFormSubmissionSaved, true));
|
|
||||||
if ($this->getConfig('addIdToRedirect')) {
|
if ($this->getConfig('addIdToRedirect')) {
|
||||||
$redirectUrl[] = $contactUsFormSubmissionSaved->get($this->ContactUsFormSubmissions->getPrimaryKey());
|
$redirectUrl[] = $contactUsFormSubmissionSaved->get($this->ContactUsFormSubmissions->getPrimaryKey());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user