fixed category description of reports
This commit is contained in:
parent
b47ae814f6
commit
486c04c4ae
@ -141,13 +141,15 @@ abstract class Report
|
|||||||
|
|
||||||
public function getCategoryDescription()
|
public function getCategoryDescription()
|
||||||
{
|
{
|
||||||
if (!empty($this->category_description)) {
|
if (! empty($this->category_description)) {
|
||||||
return trans($this->category_description);
|
return trans($this->category_description);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->findTranslation([
|
return $this->findTranslation([
|
||||||
$this->category . '_desc',
|
$this->category . '_desc',
|
||||||
$this->category . '_description',
|
$this->category . '_description',
|
||||||
|
str_replace('general.', 'reports.', $this->category) . '_desc',
|
||||||
|
str_replace('general.', 'reports.', $this->category) . '_description',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user