Optimization: when displaying an object details, do not check data synchro for each and every attribute (the cache did exist but was inoperant)

SVN:trunk[3634]
This commit is contained in:
Romain Quetiez
2015-07-09 13:43:34 +00:00
parent 0b045e5dd0
commit a6b74d6538

View File

@@ -2839,7 +2839,7 @@ abstract class DBObject implements iDisplay
*/
public function GetSynchroData()
{
if ($this->m_aSynchroData == null)
if (is_null($this->m_aSynchroData))
{
$sOQL = "SELECT replica,datasource FROM SynchroReplica AS replica JOIN SynchroDataSource AS datasource ON replica.sync_source_id=datasource.id WHERE replica.dest_class = :dest_class AND replica.dest_id = :dest_id";
$oReplicaSet = new DBObjectSet(DBObjectSearch::FromOQL($sOQL), array() /* order by*/, array('dest_class' => get_class($this), 'dest_id' => $this->GetKey()));