ソースを参照

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)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3349 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 年 前
コミット
86b2ff52a4
1 ファイル変更1 行追加1 行削除
  1. 1 1
      setup/compiler.class.inc.php

+ 1 - 1
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;