CSVImport: Removed calls to deprecated method GetHyperLink

SVN:code[64]
This commit is contained in:
Romain Quetiez
2009-04-30 16:05:20 +00:00
parent 74626cfe73
commit e8ec2968b3

View File

@@ -330,11 +330,11 @@ function PrepareObject(&$oTargetObj, $aRowData, $aAttList, $aExtKeys, &$aWarning
// Report it // Report it
if (array_key_exists($sAttCode, $oTargetObj->ListChanges())) if (array_key_exists($sAttCode, $oTargetObj->ListChanges()))
{ {
$aResults[$sAttCode]= "<div class=\"csvimport_ok\">".$oForeignObj->GetHyperLink()."</div>"; $aResults[$sAttCode]= "<div class=\"csvimport_ok\">".$oForeignObj->GetName()."</div>";
} }
else else
{ {
$aResults[$sAttCode]= "<div class=\"\">".$oForeignObj->GetHyperLink()."</div>"; $aResults[$sAttCode]= "<div class=\"\">".$oForeignObj->GetName()."</div>";
} }
break; break;
default: default:
@@ -421,7 +421,7 @@ function CreateObject(&$aResult, $iRow, $sClass, $aRowData, $aAttList, $aExtKeys
if ($oChange) if ($oChange)
{ {
$newID = $oTargetObj->DBInsertTracked($oChange); $newID = $oTargetObj->DBInsertTracked($oChange);
$aResult[$iRow]["__STATUS__"] = "Created: ".$oTargetObj->GetHyperLink($newID); $aResult[$iRow]["__STATUS__"] = "Created: ".$oTargetObj->GetName();
} }
else else
{ {
@@ -561,7 +561,7 @@ function ProcessData($oPage, $sClass, $oCSVParser, $aFieldMap, $aIsReconcKey, CM
case 1: case 1:
$oTargetObj = $oReconciliationSet->Fetch(); $oTargetObj = $oReconciliationSet->Fetch();
UpdateObject($aResult, $iRow, $oTargetObj, $aRowData, $aAttList, $aExtKeys, $oChange); UpdateObject($aResult, $iRow, $oTargetObj, $aRowData, $aAttList, $aExtKeys, $oChange);
$aResult[$iRow]["__RECONCILIATION__"] = "Found a ".$oTargetObj->GetHyperLink("match"); $aResult[$iRow]["__RECONCILIATION__"] = "Found a match: ".$oTargetObj->GetName();
// $aResult[$iRow]["__STATUS__"]=> set in UpdateObject // $aResult[$iRow]["__STATUS__"]=> set in UpdateObject
break; break;
default: default: