diff --git a/htdocs/compta/bank/class/account.class.php b/htdocs/compta/bank/class/account.class.php index 35b9dba1e54..e8b645db7bb 100644 --- a/htdocs/compta/bank/class/account.class.php +++ b/htdocs/compta/bank/class/account.class.php @@ -1416,6 +1416,7 @@ class Account extends CommonObject public function getTooltipContentArray($params) { global $langs; + $langs->loadLangs(['banks', 'compta']); include_once DOL_DOCUMENT_ROOT.'/core/lib/bank.lib.php'; $datas = array(); diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2bba488f51b..79d5f038678 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -11245,7 +11245,12 @@ function getElementProperties($element_type) $subelement = 'Actioncomm'; $module = 'agenda'; } - + if ($element_type == 'bank_account') { + $classpath = 'compta/bank/class'; + $module = 'banque'; + $classfile = 'Account'; + $classname = 'Account'; + } // To work with non standard path if ($element_type == 'facture' || $element_type == 'invoice') { $classpath = 'compta/facture/class'; @@ -11361,7 +11366,6 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '') $ret = 0; $element_prop = getElementProperties($element_type); - if (is_array($element_prop) && isModEnabled($element_prop['module'])) { dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');