From 265e3bbc6fc8a40e51f1d8f1f882a8642e533d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 11 Jan 2021 13:09:58 +0300 Subject: [PATCH] fixed statutes keys.. --- app/Abstracts/View/Components/DocumentIndex.php | 4 +--- app/Abstracts/View/Components/DocumentShow.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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;