mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Bug fix: FetchAssoc was broken when dealing with in-memory sets.
SVN:trunk[3340]
This commit is contained in:
@@ -654,7 +654,11 @@ class DBObjectSet
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Pick the row from the objects added *in memory*
|
// Pick the row from the objects added *in memory*
|
||||||
$oRetObj = $this->m_aAddedObjects[$this->m_iCurrRow - $this->m_iNumLoadedDBRows][$sRequestedClassAlias];
|
$aRetObjects = array();
|
||||||
|
foreach ($this->m_oFilter->GetSelectedClasses() as $sClassAlias => $sClass)
|
||||||
|
{
|
||||||
|
$aRetObjects[$sClassAlias] = $this->m_aAddedObjects[$this->m_iCurrRow - $this->m_iNumLoadedDBRows][$sClassAlias];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->m_iCurrRow++;
|
$this->m_iCurrRow++;
|
||||||
return $aRetObjects;
|
return $aRetObjects;
|
||||||
|
|||||||
Reference in New Issue
Block a user