mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Debug v22
This commit is contained in:
@@ -1519,10 +1519,10 @@ class FormMail extends Form
|
|||||||
$layoutname = preg_replace('/\.html$/i', '', $layouttemplatefile['name']);
|
$layoutname = preg_replace('/\.html$/i', '', $layouttemplatefile['name']);
|
||||||
|
|
||||||
// Exclude some layouts for some use cases
|
// 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;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user