Project name is now unique per client and organization

This commit is contained in:
Constantin Graf
2025-04-25 17:47:14 +02:00
committed by Constantin Graf
parent f5efbad703
commit f1a1d2a266
14 changed files with 192 additions and 17 deletions

View File

@@ -99,9 +99,9 @@ class GenericTimeEntriesImporter extends DefaultImporter
if ($record['project'] !== '') {
$projectId = $this->projectImportHelper->getKey([
'name' => $record['project'],
'client_id' => $clientId,
'organization_id' => $this->organization->id,
], [
'client_id' => $clientId,
'is_billable' => false,
'color' => $this->colorService->getRandomColor(),
]);