mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 22:39:03 +02:00
Protect the optimization in case the object's friendlyname is requested.
SVN:trunk[3209]
This commit is contained in:
@@ -154,7 +154,11 @@ if (!empty($sExpression))
|
||||
}
|
||||
else if($oAttDef instanceof AttributeFriendlyname)
|
||||
{
|
||||
$aAliasToFields[$sClassAlias][] = $oAttDef->GetKeyAttCode();
|
||||
$sKeyAttCode = $oAttDef->GetKeyAttCode();
|
||||
if ($sKeyAttCode != 'id')
|
||||
{
|
||||
$aAliasToFields[$sClassAlias][] = $sKeyAttCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user