fixed statutes keys..
This commit is contained in:
parent
ee296cdf84
commit
265e3bbc6f
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user