Skip to content

Commit ed4e52f

Browse files
committed
Add null fallback in getCaseTitle
1 parent 26a4700 commit ed4e52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProcessMaker/Http/Controllers/Api/Actions/Cases/DeleteCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function getCaseTitle(string $caseNumber): string
6363
->first();
6464

6565
if ($caseStarted) {
66-
return $caseStarted->case_title;
66+
return $caseStarted->case_title ?? "Case #{$caseNumber}";
6767
}
6868

6969
// If CaseStarted doesn't exist, get case title from the first ProcessRequest

0 commit comments

Comments
 (0)