mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -651,16 +651,15 @@ class FormMail extends Form
|
|||||||
$helpforsubstitution = '';
|
$helpforsubstitution = '';
|
||||||
if (is_array($this->substit) && count($this->substit)) {
|
if (is_array($this->substit) && count($this->substit)) {
|
||||||
$helpforsubstitution .= $langs->trans('AvailableVariables').' :<br><br><span class="small">'."\n";
|
$helpforsubstitution .= $langs->trans('AvailableVariables').' :<br><br><span class="small">'."\n";
|
||||||
}
|
foreach ($this->substit as $key => $val) {
|
||||||
foreach ($this->substit as $key => $val) {
|
// Do not show deprecated variables into the tooltip help of substitution variables
|
||||||
// Do not show deprecated variables into the tooltip help of substitution variables
|
if (in_array($key, array('__NEWREF__', '__REFCLIENT__', '__REFSUPPLIER__', '__SUPPLIER_ORDER_DATE_DELIVERY__', '__SUPPLIER_ORDER_DELAY_DELIVERY__'))) {
|
||||||
if (in_array($key, array('__NEWREF__', '__REFCLIENT__', '__REFSUPPLIER__', '__SUPPLIER_ORDER_DATE_DELIVERY__', '__SUPPLIER_ORDER_DELAY_DELIVERY__'))) {
|
continue;
|
||||||
continue;
|
}
|
||||||
|
if (is_array($val)) $val = implode(', ', $val); // key __MULTICURRENCY_CODE__ is an array and crashes dolGetFirstLineOfText function which accept only text
|
||||||
|
$helpforsubstitution .= $key.' -> '.$langs->trans(dol_string_nohtmltag(dolGetFirstLineOfText($val))).'<br>';
|
||||||
|
$helpforsubstitution .= '</span>';
|
||||||
}
|
}
|
||||||
$helpforsubstitution .= $key.' -> '.$langs->trans(dol_string_nohtmltag(dolGetFirstLineOfText($val))).'<br>';
|
|
||||||
}
|
|
||||||
if (is_array($this->substit) && count($this->substit)) {
|
|
||||||
$helpforsubstitution .= '</span>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user