From 1f3d7063d29bf2bb6cb4a1c8f9a2be82e8455992 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 9 Aug 2018 11:58:27 +0300 Subject: [PATCH] fix lead capture --- application/Espo/Services/LeadCapture.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Services/LeadCapture.php b/application/Espo/Services/LeadCapture.php index 07a962fb55..4ef8880f00 100644 --- a/application/Espo/Services/LeadCapture.php +++ b/application/Espo/Services/LeadCapture.php @@ -58,7 +58,7 @@ class LeadCapture extends Record $entity->set('exampleRequestMethod', 'POST'); - $requestUrl = $this->getConfig()->getSiteUrl() . '/api/v1/' . $entity->get('apiKey'); + $requestUrl = $this->getConfig()->getSiteUrl() . '/api/v1/LeadCapture/' . $entity->get('apiKey'); $entity->set('exampleRequestUrl', $requestUrl); $fieldManagerUtil = $this->getInjection('fieldManagerUtil'); @@ -166,7 +166,7 @@ class LeadCapture extends Record return true; } - $this->leadCaptureProceed($leadCapture, $data); + return $this->leadCaptureProceed($leadCapture, $data); } protected function getLeadWithPopulatedData(Entity $leadCapture, $data)