瀏覽代碼

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'))
 					if (($sAttType == 'AttributeExternalKey') || ($sAttType == 'AttributeHierarchicalKey'))
 					{
 					{
 						$sOnTargetDel = $oField->GetChildText('on_target_delete');
 						$sOnTargetDel = $oField->GetChildText('on_target_delete');
-						if ($sOnTargetDel == 'DEL_AUTO')
+						if (($sOnTargetDel == 'DEL_AUTO') || ($sOnTargetDel == 'DEL_SILENT'))
 						{
 						{
 							$sTargetClass = $oField->GetChildText('target_class');
 							$sTargetClass = $oField->GetChildText('target_class');
 							$aLinkToClasses[$oClass->getAttribute('id')][] = $sTargetClass;
 							$aLinkToClasses[$oClass->getAttribute('id')][] = $sTargetClass;