fix project replace projet

This commit is contained in:
Frédéric FRANCE 2021-03-18 21:10:55 +01:00
parent e7ad9f1290
commit b584adf299
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -826,22 +826,28 @@ class Conf
unset($this->global->MAIN_NO_CONCAT_DESCRIPTION); unset($this->global->MAIN_NO_CONCAT_DESCRIPTION);
} }
// For backward compatibility // product is new use
if (isset($this->product)) { if (isset($this->product)) {
// For backward compatibility
$this->produit = $this->product; $this->produit = $this->product;
} }
// invoice is new use, facture is old use still initialised
if (isset($this->facture)) { if (isset($this->facture)) {
$this->invoice = $this->facture; $this->invoice = $this->facture;
} }
// order is new use, commande is old use still initialised
if (isset($this->commande)) { if (isset($this->commande)) {
$this->order = $this->commande; $this->order = $this->commande;
} }
// contract is new use, contrat is old use still initialised
if (isset($this->contrat)) { if (isset($this->contrat)) {
$this->contract = $this->contrat; $this->contract = $this->contrat;
} }
// category is new use, categorie is old use still initialised
if (isset($this->categorie)) { if (isset($this->categorie)) {
$this->category = $this->categorie; $this->category = $this->categorie;
} }
// project is new use, projet is old use still initialised
if (isset($this->projet) && !isset($this->project)) { if (isset($this->projet) && !isset($this->project)) {
$this->project = $this->projet; $this->project = $this->projet;
} }