mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Debug v22
This commit is contained in:
@@ -1519,10 +1519,10 @@ class FormMail extends Form
|
||||
$layoutname = preg_replace('/\.html$/i', '', $layouttemplatefile['name']);
|
||||
|
||||
// Exclude some layouts for some use cases
|
||||
if ($layoutname == 'news' && !in_array($showlinktolayout, array('emailing', 'websitepage')) && !isModEnabled('website')) {
|
||||
if ($layoutname == 'news' && (!in_array($showlinktolayout, array('emailing', 'websitepage')) || !isModEnabled('website'))) {
|
||||
continue;
|
||||
}
|
||||
if ($layoutname == 'products' && !in_array($showlinktolayout, array('emailing', 'websitepage')) && !isModEnabled('product') && !isModEnabled('service')) {
|
||||
if ($layoutname == 'products' && (!in_array($showlinktolayout, array('emailing', 'websitepage')) || (!isModEnabled('product') && !isModEnabled('service')))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user