Transmission of user rights along N-N links: must work both with DEL_AUTO and DEL_SILENT external keys (found with a code review, DEL_SILENT is still rarely used)

SVN:trunk[3349]
This commit is contained in:
Romain Quetiez
2014-09-24 08:56:08 +00:00
parent ed60346ae6
commit bdccf6ea72

View File

@@ -1472,7 +1472,7 @@ EOF;
if (($sAttType == 'AttributeExternalKey') || ($sAttType == 'AttributeHierarchicalKey'))
{
$sOnTargetDel = $oField->GetChildText('on_target_delete');
if ($sOnTargetDel == 'DEL_AUTO')
if (($sOnTargetDel == 'DEL_AUTO') || ($sOnTargetDel == 'DEL_SILENT'))
{
$sTargetClass = $oField->GetChildText('target_class');
$aLinkToClasses[$oClass->getAttribute('id')][] = $sTargetClass;