From 38bbf8d6b24f0a4a99c04d70375434746dc6c16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Tue, 9 May 2023 11:11:09 +0300 Subject: [PATCH] fixed recurring message --- app/Abstracts/View/Components/Documents/Show.php | 4 +--- app/Abstracts/View/Components/Transactions/Show.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/Abstracts/View/Components/Documents/Show.php b/app/Abstracts/View/Components/Documents/Show.php index b104a6ad9..1417c7a6b 100644 --- a/app/Abstracts/View/Components/Documents/Show.php +++ b/app/Abstracts/View/Components/Documents/Show.php @@ -741,9 +741,7 @@ abstract class Show extends Component return $textRecurringType; } - $default_key = config('type.' . static::OBJECT_TYPE . '.' . $type . '.translation.prefix'); - - $translation = $this->getTextFromConfig($type, 'recurring_tye', $default_key); + $translation = config('type.' . static::OBJECT_TYPE . '.' . $type . '.translation.tab_document'); if (! empty($translation)) { return $translation; diff --git a/app/Abstracts/View/Components/Transactions/Show.php b/app/Abstracts/View/Components/Transactions/Show.php index 143d00940..4e2ef5d90 100644 --- a/app/Abstracts/View/Components/Transactions/Show.php +++ b/app/Abstracts/View/Components/Transactions/Show.php @@ -1113,9 +1113,7 @@ abstract class Show extends Component return $textRecurringType; } - $default_key = config('type.transaction.' . $type . '.translation.transactions'); - - $translation = $this->getTextFromConfig($type, 'recurring_type', $default_key); + $translation = config('type.transaction.' . $type . '.translation.transactions'); if (! empty($translation)) { return $translation;