Skip to content

Commit 0b0269a

Browse files
Contact/Contactgroup(From): Add value for external_uuid column on insert
1 parent 33e7304 commit 0b0269a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/Notifications/Web/Form/ContactForm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use ipl\Validator\EmailAddressValidator;
1919
use ipl\Web\Common\CsrfCounterMeasure;
2020
use ipl\Web\Compat\CompatForm;
21+
use Ramsey\Uuid\Uuid;
2122

2223
class ContactForm extends CompatForm
2324
{
@@ -207,6 +208,7 @@ public function addOrUpdateContact()
207208

208209
$addressFromDb = [];
209210
if ($this->contactId === null) {
211+
$contact['external_uuid'] = Uuid::uuid4()->toString();
210212
$this->db->insert('contact', $contact);
211213

212214
$this->contactId = $this->db->lastInsertId();

0 commit comments

Comments
 (0)