Skip to content

Commit 59dc77f

Browse files
committed
Merge branch '7.0' of github.com:Dolibarr/dolibarr into 7.0
2 parents d2c629f + 4bdf10c commit 59dc77f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

htdocs/fourn/class/fournisseur.commande.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ public function create($user, $notrigger=0)
12281228
false,
12291229
$this->lines[$i]->date_start,
12301230
$this->lines[$i]->date_end,
1231-
0,
1231+
$this->lines[$i]->array_options,
12321232
$this->lines[$i]->fk_unit
12331233
);
12341234
if ($result < 0)
@@ -1338,6 +1338,10 @@ public function createFromClone()
13381338

13391339
$this->db->begin();
13401340

1341+
// get extrafields so they will be clone
1342+
foreach($this->lines as $line)
1343+
$line->fetch_optionals($line->rowid);
1344+
13411345
// Load source object
13421346
$objFrom = clone $this;
13431347

0 commit comments

Comments
 (0)