From 486c04c4ae4a6792c87c792de0381aaa4ed2714f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sun, 31 Jul 2022 12:38:45 +0300 Subject: [PATCH] fixed category description of reports --- app/Abstracts/Report.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', ]); }