fixed category description of reports

This commit is contained in:
Denis Duliçi 2022-07-31 12:38:45 +03:00
parent b47ae814f6
commit 486c04c4ae

View File

@ -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',
]);
}