diff --git a/ProcessMaker/Models/ProcessRequest.php b/ProcessMaker/Models/ProcessRequest.php index 989521a8b9..8b83e3a498 100644 --- a/ProcessMaker/Models/ProcessRequest.php +++ b/ProcessMaker/Models/ProcessRequest.php @@ -165,8 +165,6 @@ class ProcessRequest extends ProcessMakerModel implements ExecutionInstanceInter 'participants', ]; - const DEFAULT_CASE_TITLE = 'Case #{{_request.case_number}}'; - /** * Determine whether the item should be indexed. * @@ -1002,7 +1000,7 @@ public function getCaseTitleFromProcess(): string $caseTitle = $this->process()->select('case_title')->first()->case_title; } - return $caseTitle ?: self::DEFAULT_CASE_TITLE; + return $caseTitle ?: $this->name; } /** diff --git a/resources/js/requests/components/RequestsListing.vue b/resources/js/requests/components/RequestsListing.vue index 7f4d5be172..bae9339fdb 100644 --- a/resources/js/requests/components/RequestsListing.vue +++ b/resources/js/requests/components/RequestsListing.vue @@ -409,7 +409,7 @@ export default { return ` - ${value.case_title_formatted || value.case_title || ""} + ${value.case_title_formatted || value.case_title || value.name} `; }, formatParticipants(participants) {