fix submission confirmation mail submission_id (#230)

* fix submission confirmation mail submission_id

* fix condition
This commit is contained in:
formsdev 2023-10-27 13:48:08 +05:30 committed by GitHub
parent 7c03d20cc4
commit 2e52518aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\SerializesModels; use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Support\Arr; use Illuminate\Support\Arr;
use Vinkla\Hashids\Facades\Hashids;
class SubmissionConfirmationMail extends OpenFormMail implements ShouldQueue class SubmissionConfirmationMail extends OpenFormMail implements ShouldQueue
{ {
@ -44,7 +45,7 @@ class SubmissionConfirmationMail extends OpenFormMail implements ShouldQueue
'fields' => $formatter->getFieldsWithValue(), 'fields' => $formatter->getFieldsWithValue(),
'form' => $form, 'form' => $form,
'noBranding' => $form->no_branding, 'noBranding' => $form->no_branding,
'submission_id' => $this->event->data['submission_id'] ?? null 'submission_id' => (isset($this->event->data['submission_id']) && $this->event->data['submission_id']) ? Hashids::encode($this->event->data['submission_id']) : null
]); ]);
} }