From 0dea12591994f8aa72a98dc3eb8781ccf1465930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 4 Mar 2020 15:53:15 +0300 Subject: [PATCH] Create customer to user issue solved.. --- app/Jobs/Common/CreateContact.php | 2 +- app/Jobs/Common/UpdateContact.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Common/CreateContact.php b/app/Jobs/Common/CreateContact.php index 6b30924b6..b136766b3 100644 --- a/app/Jobs/Common/CreateContact.php +++ b/app/Jobs/Common/CreateContact.php @@ -27,7 +27,7 @@ class CreateContact extends Job */ public function handle() { - if (!empty($this->request->input('create_user'))) { + if ($this->request->get('create_user', 'false') === 'true') { $this->createUser(); } diff --git a/app/Jobs/Common/UpdateContact.php b/app/Jobs/Common/UpdateContact.php index be513a71a..504228e7d 100644 --- a/app/Jobs/Common/UpdateContact.php +++ b/app/Jobs/Common/UpdateContact.php @@ -33,7 +33,7 @@ class UpdateContact extends Job { $this->authorize(); - if (!empty($this->request->input('create_user'))) { + if ($this->request->get('create_user', 'false') === 'true') { $this->createUser(); }