diff --git a/app/Abstracts/View/Components/DocumentIndex.php b/app/Abstracts/View/Components/DocumentIndex.php index c6701fdaa..48d51464b 100644 --- a/app/Abstracts/View/Components/DocumentIndex.php +++ b/app/Abstracts/View/Components/DocumentIndex.php @@ -705,9 +705,7 @@ abstract class DocumentIndex extends Base return $textDocumentStatus; } - $default_key = config('type.' . $type . '.translation.prefix') . '.statuses.'; - - $translation = $this->getTextFromConfig($type, 'document_status', $default_key); + $translation = $this->getTextFromConfig($type, 'document_status', '.statuses.'); if (!empty($translation)) { return $translation; diff --git a/app/Abstracts/View/Components/DocumentShow.php b/app/Abstracts/View/Components/DocumentShow.php index d146936ca..64657e9ce 100644 --- a/app/Abstracts/View/Components/DocumentShow.php +++ b/app/Abstracts/View/Components/DocumentShow.php @@ -639,9 +639,7 @@ abstract class DocumentShow extends Base return $textHistoryStatus; } - $default_key = config('type.' . $type . '.translation.prefix') . '.statuses.'; - - $translation = $this->getTextFromConfig($type, 'document_status', $default_key); + $translation = $this->getTextFromConfig($type, 'document_status', '.statuses.'); if (!empty($translation)) { return $translation;