mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
REST services: fixed issue with returned external keys
SVN:trunk[2594]
This commit is contained in:
@@ -99,8 +99,13 @@ class ObjectResult
|
||||
$value[] = $aLnkValues;
|
||||
}
|
||||
}
|
||||
elseif ($oAttDef->IsExternalKey())
|
||||
{
|
||||
$value = $oObject->Get($sAttCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Still to be refined...
|
||||
$value = $oObject->GetEditValue($sAttCode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +150,6 @@ foreach ($aOperations as $iOp => $aOperation)
|
||||
|
||||
$response = DoPostRequest($sUrl, $aData);
|
||||
$aResults = json_decode($response);
|
||||
$aResults = $response;
|
||||
if ($aResults)
|
||||
{
|
||||
echo "--------------------------------------\n";
|
||||
|
||||
Reference in New Issue
Block a user