From 141dab15b65038ae2b08014cef611e08816d9ad3 Mon Sep 17 00:00:00 2001 From: Jia Sheng Date: Thu, 23 May 2024 11:44:18 +0800 Subject: [PATCH] fix segment requried contact bug --- .../AssignCompanyConnectionToConnectionSegmentLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Companies/ControllersLogic/AssignCompanyConnectionToConnectionSegmentLogic.php b/app/Classes/Modules/Companies/ControllersLogic/AssignCompanyConnectionToConnectionSegmentLogic.php index 614e882d..8069663c 100644 --- a/app/Classes/Modules/Companies/ControllersLogic/AssignCompanyConnectionToConnectionSegmentLogic.php +++ b/app/Classes/Modules/Companies/ControllersLogic/AssignCompanyConnectionToConnectionSegmentLogic.php @@ -69,7 +69,7 @@ class AssignCompanyConnectionToConnectionSegmentLogic extends AbstractController $this->assignCompanyConnectionToConnectionSegmentProcessor->execute($companyConnection, $request->input('segment_id')); - if ($request->input('segment_id') != 12) { + if ($request->input('segment_id') == 10 || $request->input('segment_id') == 11) { $contactObject = new ContactObject('Whatsapp: ' . $request->input('name'), $request->input('phone'), null, null); $this->createContactProcessor->execute($contactObject, $company); }