From 8e7fb417a8897240f6b64797c42200aa3771cc20 Mon Sep 17 00:00:00 2001 From: Denis R Date: Tue, 5 Feb 2019 12:16:52 +0500 Subject: [PATCH] [FIX] Import CSV --- lib/SP/Services/Import/ImportTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SP/Services/Import/ImportTrait.php b/lib/SP/Services/Import/ImportTrait.php index e33e044bf..eb125ccc0 100644 --- a/lib/SP/Services/Import/ImportTrait.php +++ b/lib/SP/Services/Import/ImportTrait.php @@ -142,7 +142,7 @@ protected function addAccount(AccountRequest $accountRequest) protected function addCategory(CategoryData $categoryData) { try { - if ($categoryId = $this->getWorkingItem('category', $categoryData->getName()) === null) { + if (($categoryId = $this->getWorkingItem('category', $categoryData->getName())) === null) { return $this->categoryService->create($categoryData); } @@ -203,7 +203,7 @@ protected function addWorkingItem($type, $value, $id) protected function addClient(ClientData $clientData) { try { - if ($clientId = $this->getWorkingItem('client', $clientData->getName()) === null) { + if (($clientId = $this->getWorkingItem('client', $clientData->getName())) === null) { return $this->clientService->create($clientData); } @@ -230,7 +230,7 @@ protected function addClient(ClientData $clientData) protected function addTag(TagData $tagData) { try { - if ($tagId = $this->getWorkingItem('tag', $tagData->getName()) === null) { + if (($tagId = $this->getWorkingItem('tag', $tagData->getName())) === null) { return $this->tagService->create($tagData); }