Fix reloads

This commit is contained in:
Eric Espie
2022-04-07 18:15:18 +02:00
parent b0a55e057b
commit 34a26d33a1
2 changed files with 9 additions and 10 deletions

View File

@@ -779,12 +779,11 @@ abstract class DBObject implements iDisplay
}
else
{
// if (isset($this->m_aLoadedAtt[$sAttCode]))
// {
// // Standard case... we have the information directly
// }
// else
if ($this->m_bIsInDB && !$this->m_bFullyLoaded && !$this->m_bDirty)
if (isset($this->m_aLoadedAtt[$sAttCode]))
{
// Standard case... we have the information directly
}
elseif ($this->m_bIsInDB && !$this->m_bFullyLoaded && !$this->m_bDirty)
{
// Lazy load (polymorphism): complete by reloading the entire object
$oKPI = new ExecutionKPI();