Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
63805b23a0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
 	}