diff --git a/app/Abstracts/Report.php b/app/Abstracts/Report.php index 5b8366569..1bca38900 100644 --- a/app/Abstracts/Report.php +++ b/app/Abstracts/Report.php @@ -141,13 +141,15 @@ abstract class Report public function getCategoryDescription() { - if (!empty($this->category_description)) { + if (! empty($this->category_description)) { return trans($this->category_description); } return $this->findTranslation([ $this->category . '_desc', $this->category . '_description', + str_replace('general.', 'reports.', $this->category) . '_desc', + str_replace('general.', 'reports.', $this->category) . '_description', ]); }