2
0
forked from Wavyzz/dolibarr

Use new table function for comm/propal + cleanup

This commit is contained in:
Sekan, Tobias
2020-09-16 10:51:19 +02:00
parent 382a4552eb
commit ac1fdb4a59
4 changed files with 366 additions and 366 deletions

View File

@@ -82,6 +82,12 @@ function getEntity($element, $shared = 1, $currentobject = null)
{
global $conf, $mc;
// fix different element names (France to English)
switch($element) {
case 'contrat': $element = 'contract'; break; // "/contrat/class/contrat.class.php"
case 'order_supplier': $element = 'supplier_order'; break; // "/fourn/class/fournisseur.commande.class.php"
}
if (is_object($mc))
{
return $mc->getEntity($element, $shared, $currentobject);