2
0
forked from Wavyzz/dolibarr

NEW Can set language on extrafields

This commit is contained in:
Laurent Destailleur
2017-08-27 12:06:46 +02:00
parent f10e89aa9f
commit 3f7eea2e0a
7 changed files with 57 additions and 74 deletions

View File

@@ -4565,6 +4565,9 @@ abstract class CommonObject
$e = 0;
foreach($extrafields->attribute_label as $key=>$label)
{
// Load language if required
if (! empty($extrafields->attributes[$this->table_element]['langfile'][$key])) $langs->load($extrafields->attributes[$this->table_element]['langfile'][$key]);
if (is_array($params) && count($params)>0) {
if (array_key_exists('colspan',$params)) {
$colspan=$params['colspan'];