mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 03:16:54 +01:00
Merge pull request #1232 from denibrain/master
[FIX] Import CSV. Thanks to @denibrain for the contribution. Closes #1232
This commit is contained in:
@@ -142,7 +142,7 @@ trait ImportTrait
|
||||
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 @@ trait ImportTrait
|
||||
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 @@ trait ImportTrait
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user