mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 07:32:32 +01:00
Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/comm/propal/list.php htdocs/commande/list.php
This commit is contained in:
@@ -5652,7 +5652,7 @@ function get_exdir($num, $level, $alpha, $withoutslash, $object, $modulepart = '
|
||||
$arrayforoldpath = array('cheque', 'category', 'holiday', 'supplier_invoice', 'invoice_supplier', 'mailing', 'supplier_payment');
|
||||
if (!empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)) $arrayforoldpath[] = 'product';
|
||||
if (!empty($level) && in_array($modulepart, $arrayforoldpath)) {
|
||||
// This part should be removed once all code is using "get_exdir" to forge path, with all parameters provided.
|
||||
// This part should be removed once all code is using "get_exdir" to forge path, with parameter $object and $modulepart provided.
|
||||
if (empty($alpha)) $num = preg_replace('/([^0-9])/i', '', $num);
|
||||
else $num = preg_replace('/^.*\-/i', '', $num);
|
||||
$num = substr("000".$num, -$level);
|
||||
|
||||
Reference in New Issue
Block a user