mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Limit the display of the status to the latest 100 runs of the synchro data source.
SVN:trunk[3157]
This commit is contained in:
@@ -230,6 +230,7 @@ class SynchroDataSource extends cmdbAbstractObject
|
||||
|
||||
$sSelectSynchroLog = 'SELECT SynchroLog WHERE sync_source_id = :source_id';
|
||||
$oSetSynchroLog = new CMDBObjectSet(DBObjectSearch::FromOQL($sSelectSynchroLog), array('start_date' => false) /* order by*/, array('source_id' => $this->GetKey()));
|
||||
$oSetSynchroLog->SetLimit(100); // Display only the 100 latest runs
|
||||
|
||||
if ($oSetSynchroLog->Count() > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user