From 6190c6ad697975e6b4e479f819b00a590df666ff Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 24 Feb 2024 14:08:23 +0100 Subject: [PATCH] Qual: Initialize module mapping from common constant (#28384) # Qual: Initialize module mapping from common constant DRY: Use constant define din functions.lib for centralized updates --- htdocs/core/modules/import/modules_import.php | 27 ++----------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/htdocs/core/modules/import/modules_import.php b/htdocs/core/modules/import/modules_import.php index e9e82e7baa7..ce6956b0d0e 100644 --- a/htdocs/core/modules/import/modules_import.php +++ b/htdocs/core/modules/import/modules_import.php @@ -1,6 +1,7 @@ * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -118,31 +119,7 @@ class ModeleImports /** * @var array Element mapping from table name */ - public static $mapTableToElement = array( - 'actioncomm' => 'agenda', - 'adherent' => 'member', - 'adherent_type' => 'member_type', - //'bank_account' => 'bank_account', - 'categorie' => 'category', - //'commande' => 'commande', - //'commande_fournisseur' => 'commande_fournisseur', - 'contrat' => 'contract', - 'entrepot' => 'stock', - //'expensereport' => 'expensereport', - 'facture' => 'invoice', - //'facture_fourn' => 'facture_fourn', - 'fichinter' => 'intervention', - //'holiday' => 'holiday', - //'product' => 'product', - 'product_price' => 'productprice', - 'product_fournisseur_price' => 'productsupplierprice', - 'projet' => 'project', - //'propal' => 'propal', - //'societe' => 'societe', - 'socpeople' => 'contact', - //'supplier_proposal' => 'supplier_proposal', - //'ticket' => 'ticket', - ); + public static $mapTableToElement = DEPRECATED_MODULE_MAPPING; /** * Constructor