Fix: Try a fix of cloning lines->array
This commit is contained in:
parent
b95aa1ac7b
commit
ee0f44c9e3
@ -3232,5 +3232,17 @@ abstract class CommonObject
|
||||
print '</tr>';
|
||||
print '</table>';
|
||||
}
|
||||
|
||||
function __clone()
|
||||
{
|
||||
// Force a copy of this->lines, otherwise it will point to same object.
|
||||
if (isset($this->lines) && is_array($this->lines))
|
||||
{
|
||||
for($i=0; $i < count($this->lines); $i++)
|
||||
{
|
||||
$this->lines[$i] = dol_clone($this->lines[$i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user