REST services: fixed issue with returned external keys

SVN:trunk[2594]
This commit is contained in:
Romain Quetiez
2013-01-30 14:09:32 +00:00
parent a9ac7d9e10
commit 59e1a64f2d
2 changed files with 5 additions and 1 deletions

View File

@@ -99,8 +99,13 @@ class ObjectResult
$value[] = $aLnkValues;
}
}
elseif ($oAttDef->IsExternalKey())
{
$value = $oObject->Get($sAttCode);
}
else
{
// Still to be refined...
$value = $oObject->GetEditValue($sAttCode);
}
}

View File

@@ -150,7 +150,6 @@ foreach ($aOperations as $iOp => $aOperation)
$response = DoPostRequest($sUrl, $aData);
$aResults = json_decode($response);
$aResults = $response;
if ($aResults)
{
echo "--------------------------------------\n";