Kaynağa Gözat

Support of "fileref" tags inside the definition of the class fields. Useful for the "default_image" tag of AttributeImage.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4472 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 8 yıl önce
ebeveyn
işleme
baf7699db3
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      setup/compiler.class.inc.php

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

@@ -995,6 +995,11 @@ EOF
 	
 		// Fields
 		//
+		$oFields = $oClass->GetOptionalElement('fields');
+		if ($oFields)
+		{
+			$this->CompileFiles($oFields, $sTempTargetDir.'/'.$sModuleRelativeDir, $sFinalTargetDir.'/'.$sModuleRelativeDir, '');
+		}
 		$sAttributes = '';
 		foreach($this->oFactory->ListFields($oClass) as $oField)
 		{