fixed statutes keys..

This commit is contained in:
Cüneyt Şentürk 2021-01-11 13:09:58 +03:00
parent ee296cdf84
commit 265e3bbc6f
2 changed files with 2 additions and 6 deletions

View File

@ -705,9 +705,7 @@ abstract class DocumentIndex extends Base
return $textDocumentStatus; return $textDocumentStatus;
} }
$default_key = config('type.' . $type . '.translation.prefix') . '.statuses.'; $translation = $this->getTextFromConfig($type, 'document_status', '.statuses.');
$translation = $this->getTextFromConfig($type, 'document_status', $default_key);
if (!empty($translation)) { if (!empty($translation)) {
return $translation; return $translation;

View File

@ -639,9 +639,7 @@ abstract class DocumentShow extends Base
return $textHistoryStatus; return $textHistoryStatus;
} }
$default_key = config('type.' . $type . '.translation.prefix') . '.statuses.'; $translation = $this->getTextFromConfig($type, 'document_status', '.statuses.');
$translation = $this->getTextFromConfig($type, 'document_status', $default_key);
if (!empty($translation)) { if (!empty($translation)) {
return $translation; return $translation;