Merge pull request #2305 from burakcakirel/fix-document-templates-for-modules
Fix not changing document templates and colours for modules
This commit is contained in:
commit
098bac6f73
@ -593,10 +593,6 @@ abstract class DocumentShow extends Base
|
||||
return $template;
|
||||
}
|
||||
|
||||
if (!empty($alias = config('type.' . $type . '.alias'))) {
|
||||
$type = $alias . '.' . str_replace('-', '_', $type);
|
||||
}
|
||||
|
||||
$documentTemplate = setting($this->getSettingKey($type, 'template')) ?: 'default';
|
||||
|
||||
return $documentTemplate;
|
||||
|
@ -261,11 +261,6 @@ abstract class DocumentTemplate extends Base
|
||||
return $background_color;
|
||||
}
|
||||
|
||||
|
||||
if (!empty($alias = config('type.' . $type . '.alias'))) {
|
||||
$type = $alias . '.' . str_replace('-', '_', $type);
|
||||
}
|
||||
|
||||
$backgroundColor = setting($this->getSettingKey($type, 'color'), '#55588b');
|
||||
|
||||
return $backgroundColor;
|
||||
|
@ -511,10 +511,6 @@ abstract class TransactionShow extends Base
|
||||
return $template;
|
||||
}
|
||||
|
||||
if (!empty($alias = config('type.' . $type . '.alias'))) {
|
||||
$type = $alias . '.' . str_replace('-', '_', $type);
|
||||
}
|
||||
|
||||
$transactionTemplate = setting($this->getSettingKey($type, 'template')) ?: 'default';
|
||||
|
||||
return $transactionTemplate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user