Skip to content

Commit

Permalink
Don't require two database connections for adding groups any more
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jul 16, 2017
1 parent b2acca9 commit 3cd25c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/custom/src/MShop/Customer/Manager/FosUser.php
Expand Up @@ -462,8 +462,6 @@ public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true )
$item->setId( $this->newId( $conn, $path ) );
}

$this->addGroups( $item );

$dbm->release( $conn, $dbname );
}
catch( \Exception $e )
Expand All @@ -472,6 +470,8 @@ public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true )
throw $e;
}

$this->addGroups( $item );

return $item;
}

Expand Down

0 comments on commit 3cd25c2

Please sign in to comment.