소스 검색

Make sure that the generated form field's IDs are valid ones.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4602 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 8 년 전
부모
커밋
01904026f6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/forms.class.inc.php

+ 1 - 1
application/forms.class.inc.php

@@ -531,7 +531,7 @@ EOF
 	
 	public function GetFieldId($sCode)
 	{
-		return $this->GetPrefix().'attr_'.$sCode;
+		return $this->GetPrefix().'attr_'.utils::GetSafeId($sCode.$this->GetSuffix());
 	}
 	
 	public function GetFieldName($sCode)