fix submission confirmation mail submission_id (#230)
* fix submission confirmation mail submission_id * fix condition
This commit is contained in:
parent
7c03d20cc4
commit
2e52518aa7
|
@ -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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue