fix ajax tooltip for account
This commit is contained in:
parent
11b9c499e9
commit
61f1445fbf
@ -1416,6 +1416,7 @@ class Account extends CommonObject
|
|||||||
public function getTooltipContentArray($params)
|
public function getTooltipContentArray($params)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
$langs->loadLangs(['banks', 'compta']);
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/bank.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/bank.lib.php';
|
||||||
|
|
||||||
$datas = array();
|
$datas = array();
|
||||||
|
|||||||
@ -11245,7 +11245,12 @@ function getElementProperties($element_type)
|
|||||||
$subelement = 'Actioncomm';
|
$subelement = 'Actioncomm';
|
||||||
$module = 'agenda';
|
$module = 'agenda';
|
||||||
}
|
}
|
||||||
|
if ($element_type == 'bank_account') {
|
||||||
|
$classpath = 'compta/bank/class';
|
||||||
|
$module = 'banque';
|
||||||
|
$classfile = 'Account';
|
||||||
|
$classname = 'Account';
|
||||||
|
}
|
||||||
// To work with non standard path
|
// To work with non standard path
|
||||||
if ($element_type == 'facture' || $element_type == 'invoice') {
|
if ($element_type == 'facture' || $element_type == 'invoice') {
|
||||||
$classpath = 'compta/facture/class';
|
$classpath = 'compta/facture/class';
|
||||||
@ -11361,7 +11366,6 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '')
|
|||||||
$ret = 0;
|
$ret = 0;
|
||||||
|
|
||||||
$element_prop = getElementProperties($element_type);
|
$element_prop = getElementProperties($element_type);
|
||||||
|
|
||||||
if (is_array($element_prop) && isModEnabled($element_prop['module'])) {
|
if (is_array($element_prop) && isModEnabled($element_prop['module'])) {
|
||||||
dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');
|
dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user