From bdccf6ea727f2b596a6609a922cdd00d5cf74bb3 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 24 Sep 2014 08:56:08 +0000 Subject: [PATCH] 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] --- setup/compiler.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index 2d83863b2..2262e140b 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -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;