We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b31821 commit 525ba38Copy full SHA for 525ba38
packages/Webkul/Admin/src/Http/Controllers/Contact/Persons/PersonController.php
@@ -187,6 +187,18 @@ private function sanitizeRequestedPersonData(array $data): array
187
$data['organization_id'] = null;
188
}
189
190
+ $data['unique_id'] = '';
191
+
192
+ if (! empty($data['user_id'])) {
193
+ $data['unique_id'] .= '|'.$data['user_id'];
194
+ }
195
196
+ if (! empty($data['organization_id'])) {
197
+ $data['unique_id'] .= '|'.$data['organization_id'];
198
199
200
+ $data['unique_id'] .= '|'.$data['emails'][0]['value'];
201
202
if (isset($data['contact_numbers'])) {
203
$data['contact_numbers'] = collect($data['contact_numbers'])->filter(fn ($number) => ! is_null($number['value']))->toArray();
204
0 commit comments