mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-27 06:04:12 +01:00
(Jeffrey Boesten): Rewind enhancement when data already loaded
This commit is contained in:
@@ -1063,7 +1063,12 @@ class DBObjectSet implements iDBObjectSetIterator
|
||||
$this->Load();
|
||||
}
|
||||
|
||||
$this->m_iCurrRow = min($iRow, $this->Count());
|
||||
if ($iRow > 0) {
|
||||
$this->m_iCurrRow = min($iRow, $this->Count());
|
||||
} else {
|
||||
$this->m_iCurrRow = $iRow;
|
||||
}
|
||||
|
||||
if ($this->m_iCurrRow < $this->m_iNumLoadedDBRows) {
|
||||
$this->m_oSQLResult->data_seek($this->m_iCurrRow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user