#794 Could not export the field friendlyname in format 'spreadsheet'

SVN:trunk[2903]
This commit is contained in:
Romain Quetiez
2013-10-14 14:17:07 +00:00
parent 2218003bec
commit c2efdfa0bb

View File

@@ -1245,9 +1245,12 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
if ($oAttDef instanceof AttributeFriendlyName)
{
$sKeyAttCode = $oAttDef->GetKeyAttCode();
if ($oObj->Get($sKeyAttCode) == 0)
if ($sKeyAttCode != 'id')
{
$rawValue = '';
if ($oObj->Get($sKeyAttCode) == 0)
{
$rawValue = '';
}
}
}
if ($bLocalize)