mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
Protect against empty list of reconciliation keys
SVN:trunk[1819]
This commit is contained in:
@@ -347,6 +347,7 @@ try
|
|||||||
$aMoreReconciliationKeys = array(); // Store: key => void to automatically remove duplicates
|
$aMoreReconciliationKeys = array(); // Store: key => void to automatically remove duplicates
|
||||||
foreach($aReconciliationKeys as $sAttCode)
|
foreach($aReconciliationKeys as $sAttCode)
|
||||||
{
|
{
|
||||||
|
if (!MetaModel::IsValidAttCode($sClassName, $sAttCode)) continue;
|
||||||
$oAttDef = MetaModel::GetAttributeDef($sClassName, $sAttCode);
|
$oAttDef = MetaModel::GetAttributeDef($sClassName, $sAttCode);
|
||||||
if ($oAttDef->IsExternalKey())
|
if ($oAttDef->IsExternalKey())
|
||||||
{
|
{
|
||||||
@@ -403,7 +404,7 @@ EOF
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$oPage = new ajax_page("");
|
$oPage = new ajax_page("Class $sClassName is not a valid class !");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user