forked from Wavyzz/dolibarr
Remove deprecated __REFCLIENT__ (Replaced with __REF_CLIENT__)
This commit is contained in:
@@ -169,7 +169,7 @@ Following changes may create regressions for some external modules, but were nec
|
|||||||
* If your database is PostgreSql, you must use version 9.1.0 or more (Dolibarr need the SQL function CONCAT)
|
* If your database is PostgreSql, you must use version 9.1.0 or more (Dolibarr need the SQL function CONCAT)
|
||||||
* If your database is MySql or MariaDB, you need at least version 5.1
|
* If your database is MySql or MariaDB, you need at least version 5.1
|
||||||
* Function set_price_level() has been renamed into setPriceLevel() to follow camelcase rules
|
* Function set_price_level() has been renamed into setPriceLevel() to follow camelcase rules
|
||||||
|
* Remove deprecated subtituion key __REFCLIENT__ (Replaced with __REF_CLIENT__)
|
||||||
|
|
||||||
***** ChangeLog for 13.0.3 compared to 13.0.2 *****
|
***** ChangeLog for 13.0.3 compared to 13.0.2 *****
|
||||||
|
|
||||||
|
|||||||
@@ -6877,10 +6877,6 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
|||||||
$substitutionarray['__DATE_DELIVERY_SS__'] = (isset($object->date_livraison) ? dol_print_date($object->date_livraison, "%S") : '');
|
$substitutionarray['__DATE_DELIVERY_SS__'] = (isset($object->date_livraison) ? dol_print_date($object->date_livraison, "%S") : '');
|
||||||
|
|
||||||
// For backward compatibility
|
// For backward compatibility
|
||||||
$substitutionarray['__REFCLIENT__'] = (isset($object->ref_client) ? $object->ref_client : (isset($object->ref_customer) ? $object->ref_customer : null));
|
|
||||||
$substitutionarray['__REFSUPPLIER__'] = (isset($object->ref_supplier) ? $object->ref_supplier : null);
|
|
||||||
$substitutionarray['__REFCLIENT__'] = (isset($object->ref_client) ? $object->ref_client : (isset($object->ref_customer) ? $object->ref_customer : null));
|
|
||||||
$substitutionarray['__REFSUPPLIER__'] = (isset($object->ref_supplier) ? $object->ref_supplier : null);
|
|
||||||
$substitutionarray['__SUPPLIER_ORDER_DATE_DELIVERY__'] = (isset($object->date_livraison) ? dol_print_date($object->date_livraison, 'day', 0, $outputlangs) : '');
|
$substitutionarray['__SUPPLIER_ORDER_DATE_DELIVERY__'] = (isset($object->date_livraison) ? dol_print_date($object->date_livraison, 'day', 0, $outputlangs) : '');
|
||||||
$substitutionarray['__SUPPLIER_ORDER_DELAY_DELIVERY__'] = (isset($object->availability_code) ? ($outputlangs->transnoentities("AvailabilityType".$object->availability_code) != ('AvailabilityType'.$object->availability_code) ? $outputlangs->transnoentities("AvailabilityType".$object->availability_code) : $outputlangs->convToOutputCharset(isset($object->availability) ? $object->availability : '')) : '');
|
$substitutionarray['__SUPPLIER_ORDER_DELAY_DELIVERY__'] = (isset($object->availability_code) ? ($outputlangs->transnoentities("AvailabilityType".$object->availability_code) != ('AvailabilityType'.$object->availability_code) ? $outputlangs->transnoentities("AvailabilityType".$object->availability_code) : $outputlangs->convToOutputCharset(isset($object->availability) ? $object->availability : '')) : '');
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ if ($action == 'presend') {
|
|||||||
if (empty($object->ref_client)) {
|
if (empty($object->ref_client)) {
|
||||||
$topicmail = $outputlangs->trans($defaulttopic, '__REF__');
|
$topicmail = $outputlangs->trans($defaulttopic, '__REF__');
|
||||||
} elseif (!empty($object->ref_client)) {
|
} elseif (!empty($object->ref_client)) {
|
||||||
$topicmail = $outputlangs->trans($defaulttopic, '__REF__ (__REFCLIENT__)');
|
$topicmail = $outputlangs->trans($defaulttopic, '__REF__ (__REF_CLIENT__)');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build document if it not exists
|
// Build document if it not exists
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ if ($massaction == 'presend') {
|
|||||||
$formmail->withtofree = empty($liste) ? 1 : 0;
|
$formmail->withtofree = empty($liste) ? 1 : 0;
|
||||||
$formmail->withtocc = 1;
|
$formmail->withtocc = 1;
|
||||||
$formmail->withtoccc = $conf->global->MAIN_EMAIL_USECCC;
|
$formmail->withtoccc = $conf->global->MAIN_EMAIL_USECCC;
|
||||||
$formmail->withtopic = $langs->transnoentities($topicmail, '__REF__', '__REFCLIENT__');
|
$formmail->withtopic = $langs->transnoentities($topicmail, '__REF__', '__REF_CLIENT__');
|
||||||
$formmail->withfile = 1;
|
$formmail->withfile = 1;
|
||||||
// $formmail->withfile = 2; Not yet supported in mass action
|
// $formmail->withfile = 2; Not yet supported in mass action
|
||||||
$formmail->withmaindocfile = 1; // Add a checkbox "Attach also main document"
|
$formmail->withmaindocfile = 1; // Add a checkbox "Attach also main document"
|
||||||
|
|||||||
Reference in New Issue
Block a user