mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 22:48:45 +02:00
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:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user