Skip to content

Commit

Permalink
Merge pull request #1232 from denibrain/master
Browse files Browse the repository at this point in the history
[FIX] Import CSV. Thanks to @denibrain for the contribution. Closes #1232
  • Loading branch information
nuxsmin authored Feb 7, 2019
2 parents 6095749 + 8e7fb41 commit 08bc68c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/SP/Services/Import/ImportTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 08bc68c

Please sign in to comment.