Browse Source

Compiler: support "OPT_ATT_NORMAL" flags when an empty set of flags is defined in order to reset the flags on an attribute. Useful for inherited flags.

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

+ 4 - 0
setup/compiler.class.inc.php

@@ -428,6 +428,10 @@ EOF;
 				$aFlags[] = $sFlag;
 			}
 		}
+		if (empty($aFlags))
+		{
+			$aFlags[] = 'OPT_ATT_NORMAL'; // When no flag is defined, reset the state to "normal"	
+		}
 		$sRes = implode(' | ', $aFlags);
 		return $sRes;
 	}