This commit is contained in:
Laurent Destailleur 2017-01-16 11:46:30 +01:00
parent 983f707553
commit 4f949bea29

View File

@ -693,8 +693,8 @@ class Contrat extends CommonObject
// fetch optionals attributes and labels
$line->fetch_optionals($line->id,$extralabelsline);
$this->lines[] = $line;
$this->lines_id_index_mapper[$line->id] = key($this->lines);
$this->lines[$i] = $line;
$this->lines_id_index_mapper[$line->id] = $i;
//dol_syslog("1 ".$line->desc);
//dol_syslog("2 ".$line->product_desc);