Preserve the data before read operation and restore it again after

This commit is contained in:
Hadi Nategh 2015-04-30 15:07:21 +00:00
parent a15d9759e4
commit 8fda3f58a1

View File

@ -795,7 +795,12 @@ class timesheet_bo extends so_sql_cf
{
if (!is_array($entry))
{
// need to preserve the $this->data
$backup =& $this->data;
unset($this->data);
$entry = $this->read( $entry,false,false);
// restore the data again
$this->data =& $backup;
}
if (!$entry)
{