Debug v21 for multicompany
This commit is contained in:
parent
6d2de0a16f
commit
105ec63eaf
1 changed files with 2 additions and 2 deletions
|
|
@ -1009,9 +1009,9 @@ class EcmFiles extends CommonObject
|
|||
|
||||
if ($option) {
|
||||
if ($option == 'facture_fournisseur') {
|
||||
$tmppath = preg_replace('/^fournisseur\/facture\//', '', $this->filepath);
|
||||
$tmppath = preg_replace('/^(\d+\/)?fournisseur\/facture\//', '', $this->filepath);
|
||||
} elseif ($option == 'commande_fournisseur') {
|
||||
$tmppath = preg_replace('/^fournisseur\/commande\//', '', $this->filepath);
|
||||
$tmppath = preg_replace('/^(\d+\/)?fournisseur\/commande\//', '', $this->filepath);
|
||||
} else {
|
||||
if ((int) $this->entity > 1) {
|
||||
// Remove the part "entityid/commande/" into "entityid/commande/REFXXX" to get only the ref
|
||||
|
|
|
|||
Loading…
Reference in a new issue