diff --git a/ChangeLog b/ChangeLog index 26c693fa486..7713b6fdccb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -131,6 +131,7 @@ For users: - Fix: Salaries payment - Field date value is now required and add control on it. - Fix: Iban was used instead of Bic into SEPA file. - Fix: Must unaccent strings into SEPA file. +- Fix: Extrafield feature select from table should try to translate multiple column when not needed ***** ChangeLog for 3.6 compared to 3.5.* ***** For users: diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index df1527d47b9..d5d16efc2e9 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -975,7 +975,7 @@ class ExtraFields // Several field into label (eq table:code|libelle:rowid) $fields_label = explode('|',$InfoFieldList[1]); - if(is_array($fields_label)) + if(is_array($fields_label) && count($fields_label)>1) { foreach ($fields_label as $field_toshow) { diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 8a5d6b7b73e..d2527d1fca0 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -912,6 +912,7 @@ class Expedition extends CommonObject $this->db->begin(); if ($conf->productbatch->enabled) { + require_once DOL_DOCUMENT_ROOT.'/expedition/class/expeditionbatch.class.php'; if ( ExpeditionLigneBatch::deletefromexp($this->db,$this->id)<0) {$error++;$this->errors[]="Error ".$this->db->lasterror();} } @@ -1088,6 +1089,7 @@ class Expedition extends CommonObject $line = new ExpeditionLigne($this->db); $obj = $this->db->fetch_object($resql); + $line->line_id = $obj->line_id; $line->fk_origin_line = $obj->fk_origin_line; $line->origin_line_id = $obj->fk_origin_line; // TODO deprecated $line->entrepot_id = $obj->fk_entrepot; diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 750c4531cb0..a9ab8e158d6 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -971,7 +971,7 @@ class Project extends CommonObject $error=0; - dol_syslog("createFromClone clone_contact=".$clone_contact." clone_task=".$clone_task." clone_file=".$clone_file." clone_note=".$clone_note); + dol_syslog("createFromClone clone_contact=".$clone_contact." clone_task=".$clone_task." clone_project_file=".$clone_project_file." clone_note=".$clone_note); $now = dol_mktime(0,0,0,idate('m',dol_now()),idate('d',dol_now()),idate('Y',dol_now())); @@ -1130,6 +1130,8 @@ class Project extends CommonObject //Duplicate task if ($clone_task) { + require_once DOL_DOCUMENT_ROOT . '/projet/class/task.class.php'; + $taskstatic = new Task($this->db); // Security check