Browse Source

Added <inherit_flags_from> to inherit the flags from another state.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3296 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 years ago
parent
commit
3e37eac522
1 changed files with 1 additions and 2 deletions
  1. 1 2
      setup/compiler.class.inc.php

+ 1 - 2
setup/compiler.class.inc.php

@@ -1093,8 +1093,7 @@ EOF;
 				$sLifecycle .= "		MetaModel::Init_DefineState(\n";
 				$sLifecycle .= "			\"".$sState."\",\n";
 				$sLifecycle .= "			array(\n";
-				$sAttributeInherit = '';
-				//$sAttributeInherit = $oState->GetChildText('inherit_flags', ''); // Seems easy but think about the consequences when applying a delta
+				$sAttributeInherit = $oState->GetChildText('inherit_flags_from', '');
 				$sLifecycle .= "				\"attribute_inherit\" => '$sAttributeInherit',\n";
 				$oHighlight = $oState->GetUniqueElement('highlight', false);
 				if ($oHighlight)