Add validation for task name length

This commit is contained in:
Constantin Graf
2026-09-22 11:41:51 +02:00
committed by Constantin Graf
parent 927da7dce9
commit 01b60c0f6a
9 changed files with 42 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ class ClockifyTimeEntriesImporter extends DefaultImporter
}
$taskId = null;
if (! $isBreak && $taskKey !== null && $record[$taskKey] !== '') {
$this->checkTaskNameLength($record[$taskKey]);
$taskId = $this->taskImportHelper->getKey([
'name' => $record[$taskKey],
'project_id' => $projectId,