forked from Wavyzz/dolibarr
Debug v18
This commit is contained in:
@@ -4131,7 +4131,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
||||
if (empty($srconly) && in_array($pictowithouttext, array(
|
||||
'1downarrow', '1uparrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected',
|
||||
'accountancy', 'accounting_account', 'account', 'accountline', 'action', 'add', 'address', 'angle-double-down', 'angle-double-up', 'asset',
|
||||
'bank_account', 'barcode', 'bank', 'bell', 'bill', 'billa', 'billr', 'billd', 'bookmark', 'bom', 'briefcase-medical', 'bug', 'building',
|
||||
'bank_account', 'barcode', 'bank', 'bell', 'bill', 'billa', 'billr', 'billd', 'birthday-cake', 'bookmark', 'bom', 'briefcase-medical', 'bug', 'building',
|
||||
'card', 'calendarlist', 'calendar', 'calendarmonth', 'calendarweek', 'calendarday', 'calendarperuser', 'calendarpertype',
|
||||
'cash-register', 'category', 'chart', 'check', 'clock', 'close_title', 'cog', 'collab', 'company', 'contact', 'country', 'contract', 'conversation', 'cron', 'cubes',
|
||||
'currency', 'multicurrency',
|
||||
@@ -11259,6 +11259,11 @@ function getElementProperties($element_type)
|
||||
$classpath = 'categories/class';
|
||||
$module = 'categorie';
|
||||
$subelement = 'categorie';
|
||||
} elseif ($element_type == 'contact') {
|
||||
$classpath = 'contact/class';
|
||||
$classfile = 'contact';
|
||||
$module = 'societe';
|
||||
$subelement = 'contact';
|
||||
} elseif ($element_type == 'stock') {
|
||||
$classpath = 'product/stock/class';
|
||||
$classfile = 'entrepot';
|
||||
@@ -11377,6 +11382,8 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '')
|
||||
$ret = 0;
|
||||
|
||||
$element_prop = getElementProperties($element_type);
|
||||
//var_dump($element_prop);
|
||||
|
||||
if (is_array($element_prop) && isModEnabled($element_prop['module'])) {
|
||||
dol_include_once('/'.$element_prop['classpath'].'/'.$element_prop['classfile'].'.class.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user