File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
library/Notifications/Web/Form Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1717use ipl \Web \Compat \CompatForm ;
1818use ipl \Web \FormElement \TermInput ;
1919use ipl \Web \FormElement \TermInput \Term ;
20+ use Ramsey \Uuid \Uuid ;
2021
2122class ContactGroupForm extends CompatForm
2223{
@@ -176,8 +177,9 @@ public function addGroup(): int
176177 $ this ->db ->insert (
177178 'contactgroup ' ,
178179 [
179- 'name ' => trim ($ data ['group_name ' ]),
180- 'color ' => '#000000 '
180+ 'name ' => trim ($ data ['group_name ' ]),
181+ 'external_uuid ' => Uuid::uuid4 ()->toString (),
182+ 'color ' => '#000000 '
181183 ]
182184 );
183185
Original file line number Diff line number Diff line change 1818use ipl \Validator \EmailAddressValidator ;
1919use ipl \Web \Common \CsrfCounterMeasure ;
2020use ipl \Web \Compat \CompatForm ;
21+ use Ramsey \Uuid \Uuid ;
2122
2223class ContactForm extends CompatForm
2324{
@@ -198,6 +199,7 @@ public function addOrUpdateContact(): void
198199
199200 $ addressFromDb = [];
200201 if ($ this ->contactId === null ) {
202+ $ contact ['external_uuid ' ] = Uuid::uuid4 ()->toString ();
201203 $ this ->db ->insert ('contact ' , $ contact );
202204 $ this ->contactId = $ this ->db ->lastInsertId ();
203205 } else {
You can’t perform that action at this time.
0 commit comments