Fix: Try a fix of cloning lines->array

This commit is contained in:
Laurent Destailleur 2013-09-04 10:45:15 +02:00
parent b95aa1ac7b
commit ee0f44c9e3

View File

@ -3232,5 +3232,17 @@ abstract class CommonObject
print '</tr>'; print '</tr>';
print '</table>'; 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]);
}
}
}
} }
?> ?>