File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
library/Notifications/Web/Form Expand file tree Collapse file tree 2 files changed +10
-1
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{
@@ -173,7 +174,13 @@ public function addGroup(): int
173174
174175 $ this ->db ->beginTransaction ();
175176
176- $ this ->db ->insert ('contactgroup ' , ['name ' => trim ($ data ['group_name ' ])]);
177+ $ this ->db ->insert (
178+ 'contactgroup ' ,
179+ [
180+ 'name ' => $ data ['group_name ' ],
181+ 'external_uuid ' => Uuid::uuid4 ()->toString ()
182+ ]
183+ );
177184
178185 $ groupIdentifier = $ this ->db ->lastInsertId ();
179186
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{
@@ -190,6 +191,7 @@ public function addOrUpdateContact(): void
190191
191192 $ addressFromDb = [];
192193 if ($ this ->contactId === null ) {
194+ $ contact ['external_uuid ' ] = Uuid::uuid4 ()->toString ();
193195 $ this ->db ->insert ('contact ' , $ contact );
194196 $ this ->contactId = $ this ->db ->lastInsertId ();
195197 } else {
You can’t perform that action at this time.
0 commit comments